package
0.0.0-20241024095441-cbf6a1d3add7
Repository: https://github.com/dreamsxin/codeexamples.git
Documentation: pkg.go.dev

# Functions

LoggingMiddleware returns an endpoint middleware that logs the duration of each invocation, and the resulting error, if any.
MakeGreetingEndpoint constructs a Greeter endpoint wrapping the service.
MakeHealthEndpoint constructs a Health endpoint wrapping the service.
MakeServerEndpoints returns service Endoints, and wires in all the provided middlewares.

# Structs

Endpoints collects all of the endpoints that compose a greeter service.
GreetingRequest collects the request parameters for the Greeting method.
GreetingResponse collects the response values for the Greeting method.
HealthRequest collects the request parameters for the Health method.
HealthResponse collects the response values for the Health method.

# Interfaces

Failer is an interface that should be implemented by response types.