Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultTransportFactory is a function that returns back a new // instance of the default usrv transport. // // When usrv is imported, DefaultTransportFactory is set up to return // HTTP transport instances. DefaultTransportFactory func() transport.Provider // DefaultCodecFactory is a function that returns back a new // instance of the default Codec used for marshaling and unmarshaling // requests and response objects. // // When usrv is imported, DefaultCodecFactory is set up to return JSON // codec instances. DefaultCodecFactory func() encoding.Codec )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
middleware/circuitbreaker
Package circuitbreaker provides middlewares that implement the circuit-breaker pattern as described in https://martinfowler.com/bliki/CircuitBreaker.html.
|
Package circuitbreaker provides middlewares that implement the circuit-breaker pattern as described in https://martinfowler.com/bliki/CircuitBreaker.html. |
middleware/weightedrouting
Package weightedrouting provides a middleware that sets each outgoing request's version by sampling the random number generator and then consulting is routing table that assigns a weight to each version.
|
Package weightedrouting provides a middleware that sets each outgoing request's version by sampling the random number generator and then consulting is routing table that assigns a weight to each version. |
Package config exposes a global configuration store instance and provides helpers for setting default configuration values and defining dynamic flags linked to the global store.
|
Package config exposes a global configuration store instance and provides helpers for setting default configuration values and defining dynamic flags linked to the global store. |
flag
Package flag provides typed thread-safe flags that can be dynamically updated by the registered usrv config providers.
|
Package flag provides typed thread-safe flags that can be dynamically updated by the registered usrv config providers. |
provider
Package provider defines a built-in configuration providers that are automatically registered by usrv.
|
Package provider defines a built-in configuration providers that are automatically registered by usrv. |
store
Package store implements a thread-safe versioned configuration store.
|
Package store implements a thread-safe versioned configuration store. |
Package encoding defines interfaces shared by other packages that are used by usrv servers and clients to encode and decode the endpoint-specific request and response messages into a byte-level format suitable for transmitting over a transport.
|
Package encoding defines interfaces shared by other packages that are used by usrv servers and clients to encode and decode the endpoint-specific request and response messages into a byte-level format suitable for transmitting over a transport. |
gob
Package gob provides a codec for encoding and decoding of data using the gob format.
|
Package gob provides a codec for encoding and decoding of data using the gob format. |
json
Package json provides a codec for encoding and decoding JSON data.
|
Package json provides a codec for encoding and decoding JSON data. |
msgpack
Package msgpack provides a codec for encoding and decoding data using msgpack.
|
Package msgpack provides a codec for encoding and decoding data using msgpack. |
protobuf
Package protobuf provides a codec for encoding and decoding of data using protocol buffers.
|
Package protobuf provides a codec for encoding and decoding of data using protocol buffers. |
middleware/concurrency
Package concurrency provides a concurrency limiting middleware that uses a token pool to constraint the number of concurrent requests that can be handled by a particular endpoint.
|
Package concurrency provides a concurrency limiting middleware that uses a token pool to constraint the number of concurrent requests that can be handled by a particular endpoint. |
http
Package http provides a usrv transport over HTTP/HTTPS.
|
Package http provides a usrv transport over HTTP/HTTPS. |
memory
Package memory provides an in-memory usrv transport using go channels.
|
Package memory provides an in-memory usrv transport using go channels. |
Click to show internal directories.
Click to hide internal directories.