Documentation ¶
Index ¶
- func InstrumentingMiddleware(duration metrics.Histogram) endpoint.Middleware
- func MakeCreateCustomerEndpoint(s service.Service) endpoint.Endpoint
- func MakeGetCustomerByNameEndpoint(s service.Service) endpoint.Endpoint
- func MakeHealthEndpoint(s service.Service) endpoint.Endpoint
- type CreateCustomerRequest
- type CreateCustomerResponse
- type Endpoints
- type GetCustomerByNameRequest
- type GetCustomerByNameResponse
- type HealthResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstrumentingMiddleware ¶
func InstrumentingMiddleware(duration metrics.Histogram) endpoint.Middleware
func MakeCreateCustomerEndpoint ¶
MakeCreateCustomerEndpoint returns an endpoint via the given service.
func MakeGetCustomerByNameEndpoint ¶
MakeCreateCustomerEndpoint returns an endpoint via the given service.
Types ¶
type CreateCustomerRequest ¶
type CreateCustomerResponse ¶
type Endpoints ¶
type Endpoints struct { CreateCustomerEndpoint endpoint.Endpoint GetByNameEndpoint endpoint.Endpoint HealthEndpoint endpoint.Endpoint }
Endpoints collects the endpoints that comprise the Service.
func MakeEndpoints ¶
func MakeEndpoints(s service.Service, duration metrics.Histogram, tracer stdopentracing.Tracer) Endpoints
MakeEndpoints returns an Endpoints structure, where each endpoint is backed by the given service.
type GetCustomerByNameRequest ¶
type GetCustomerByNameRequest struct {
Name string `json:"name"`
}
type HealthResponse ¶
Click to show internal directories.
Click to hide internal directories.