Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstrumentingMiddleware ¶
func InstrumentingMiddleware(duration metrics.Histogram) kit.Middleware
InstrumentingMiddleware returns an endpoint middleware that records the duration of each invocation to the passed histogram. The middleware adds a single field: "success", which is "true" if no error is returned, and "false" otherwise.
func LoggingMiddleware ¶
func LoggingMiddleware(logger kitlog.Logger) kit.Middleware
LoggingMiddleware returns an endpoint middleware that logs the duration of each invocation, and the resulting error, if any.
func MakeFindUserEndpoint ¶
func MakeFindUserEndpoint(svc service.UserService) kit.Endpoint
func MakeUpdateUserEndpoint ¶
func MakeUpdateUserEndpoint(svc service.UserService) kit.Endpoint
Types ¶
Click to show internal directories.
Click to hide internal directories.