package
2.2.4+incompatible
Repository: https://github.com/goadesign/examples.git
Documentation: pkg.go.dev

# Functions

DecodePickRequest returns a decoder for requests sent to the sommelier pick endpoint.
EncodePickError returns an encoder for errors returned by the pick sommelier endpoint.
EncodePickResponse returns an encoder for responses returned by the sommelier pick endpoint.
Mount configures the mux to serve the sommelier endpoints.
MountPickHandler configures the mux to serve the "sommelier" service "pick" endpoint.
New instantiates HTTP handlers for all the sommelier service endpoints using the provided encoder and decoder.
NewPickCriteria builds a sommelier service pick endpoint payload.
NewPickHandler creates a HTTP handler which loads the HTTP request and calls the "sommelier" service "pick" endpoint.
NewPickNoCriteriaResponseBody builds the HTTP response body from the result of the "pick" endpoint of the "sommelier" service.
NewPickNoMatchResponseBody builds the HTTP response body from the result of the "pick" endpoint of the "sommelier" service.
NewStoredBottleResponseCollection builds the HTTP response body from the result of the "pick" endpoint of the "sommelier" service.
PickSommelierPath returns the URL path to the sommelier service pick HTTP endpoint.

# Structs

ComponentResponse is used to define fields on response body types.
MountPoint holds information about the mounted endpoints.
PickRequestBody is the type of the "sommelier" service "pick" endpoint HTTP request body.
Server lists the sommelier service endpoint HTTP handlers.
StoredBottleResponse is used to define fields on response body types.
WineryResponseTiny is used to define fields on response body types.

# Interfaces

ErrorNamer is an interface implemented by generated error structs that exposes the name of the error as defined in the design.

# Type aliases

PickNoCriteriaResponseBody is the type of the "sommelier" service "pick" endpoint HTTP response body for the "no_criteria" error.
PickNoMatchResponseBody is the type of the "sommelier" service "pick" endpoint HTTP response body for the "no_match" error.
StoredBottleResponseCollection is the type of the "sommelier" service "pick" endpoint HTTP response body.