Versions in this module Expand all Collapse all v0 v0.10.0 Nov 15, 2019 v0.9.0 Jun 24, 2019 Changes in this version + func DefaultErrorEncoder(ctx context.Context, err error) ([]byte, error) + type DecodeRequestFunc func(context.Context, []byte) (interface{}, error) + type EncodeResponseFunc func(context.Context, interface{}) ([]byte, error) + type ErrorEncoder func(ctx context.Context, err error) ([]byte, error) + type Handler struct + func NewHandler(e endpoint.Endpoint, dec DecodeRequestFunc, enc EncodeResponseFunc, ...) *Handler + func (h *Handler) Invoke(ctx context.Context, payload []byte) (resp []byte, err error) + type HandlerFinalizerFunc func(ctx context.Context, resp []byte, err error) + type HandlerOption func(*Handler) + func HandlerAfter(after ...HandlerResponseFunc) HandlerOption + func HandlerBefore(before ...HandlerRequestFunc) HandlerOption + func HandlerErrorEncoder(ee ErrorEncoder) HandlerOption + func HandlerErrorHandler(errorHandler transport.ErrorHandler) HandlerOption + func HandlerErrorLogger(logger log.Logger) HandlerOption + func HandlerFinalizer(f ...HandlerFinalizerFunc) HandlerOption + type HandlerRequestFunc func(ctx context.Context, payload []byte) context.Context + type HandlerResponseFunc func(ctx context.Context, response interface{}) context.Context