Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJWTTokenParsingMW ¶
func NewJWTTokenParsingMW(secretKey string) kitep.Middleware
Types ¶
type Endpoints ¶
type Endpoints struct { CreateMerchantEndpoint endpoint.Endpoint ListMerchantEndpoint endpoint.Endpoint CreateProductEndpoint endpoint.Endpoint ListProductEndpoint endpoint.Endpoint }
Endpoints collects all of the endpoints that compose a order service. It's meant to be used as a helper struct, to collect all of the endpoints into a single parameter.
func New ¶
func New(s service.IInventoryService, mdw map[string][]endpoint.Middleware) Endpoints
New returns a Endpoints struct that wraps the provided service, and wires in all of the expected endpoint middlewares
Click to show internal directories.
Click to hide internal directories.