# Packages
No description provided by the author
Package errors provides a curated list of standard types of failures you'll likely encounter when executing RPC handlers.
Package metadata provides request-scoped values for your RPC calls.
# Functions
Compose accepts multiple gateways generated using the 'frodo' tool in order to allow them to run in the same HTTP server/listener.
EndpointFromContext fetches the meta information about the service RPC operation that we're currently invoking.
NewClient constructs the RPC client that does the "heavy lifting" when communicating with remote frodo-powered RPC services.
NewGateway creates a wrapper around your raw service to expose it via HTTP for RPC calls.
WithBinder allows you to override a Gateway's default binding behavior with the custom behavior of your choice.
WithClientMiddleware sets the chain of HTTP request/response handlers you want to invoke on each service function invocation before/after we dispatch the HTTP request.
WithHTTPClient allows you to provide an HTTP client configured to your liking.
WithMiddleware invokes this chain of work before executing the actual HTTP handler for your service call.
WithNotFoundMiddleware registers a custom handler with the internal RPC/HTTP router that lets you assign custom behaviors/handling for requests that do not map to any of your service functions.
# Structs
Client manages all RPC communication with other frodo-powered services.
CompositeGateway is a gateway that is composed of multiple service RPC Gateway instances.
Endpoint describes an operation that we expose through an RPC gateway.
Gateway wrangles all of the incoming RPC/HTTP handling for your service calls.
# Interfaces
Binder performs the work of taking all meaningful values from an incoming request (body, path params, query string) and applying them to a Go struct (likely the "XxxRequest" for your service method).
ContentFileNameWriter allows raw responses to specify the file name (if any) of the file the bytes represent.
ContentTypeWriter allows raw responses to specify what type of data the bytes represent.
ContentWriter defines a response type that should be treated as raw bytes, not JSON.
# Type aliases
ClientMiddlewareFunc is a round-tripper-like function that accepts a request and returns a response/error combo, but also accepts 'next' (the rest of the computation) so that you can short circuit the execution as you see fit.
ClientOption is a single configurable setting that modifies some attribute of the RPC client when building one via NewClient().
ContentFileNameReader allows raw responses to specify the file name (if any) of the file the bytes represent.
ContentReader defines a response type that should be treated as raw bytes, not JSON.
ContentTypeReader allows raw responses to specify what type of data the bytes represent.
GatewayOption defines a setting you can apply when creating an RPC gateway via 'NewGateway'.
MiddlewareFunc is a component that conforms to the 'negroni' middleware function.
RoundTripperFunc matches the signature of the standard http.RoundTripper interface.