package
0.13.0
Repository: https://github.com/go-kit/kit.git
Documentation: pkg.go.dev

# Functions

DefaultErrorEncoder defines the default behavior of encoding an error response, where it returns nil, and the error itself.
HandlerAfter functions are only executed after invoking the endpoint but prior to returning a response.
HandlerBefore functions are executed on the payload byte, before the request is decoded.
HandlerErrorEncoder is used to encode errors.
HandlerErrorHandler is used to handle non-terminal errors.
HandlerErrorLogger is used to log non-terminal errors.
HandlerFinalizer sets finalizer which are called at the end of request.
NewHandler constructs a new handler, which implements the AWS lambda.Handler interface.

# Structs

Handler wraps an endpoint.

# Type aliases

DecodeRequestFunc extracts a user-domain request object from an AWS Lambda payload.
EncodeResponseFunc encodes the passed response object into []byte, ready to be sent as AWS Lambda response.
ErrorEncoder is responsible for encoding an error.
HandlerFinalizerFunc is executed at the end of Invoke.
HandlerOption sets an optional parameter for handlers.
HandlerRequestFunc may take information from the received payload and use it to place items in the request scoped context.
HandlerResponseFunc may take information from a request context and use it to manipulate the response before it's marshaled.