package
2.2.4+incompatible
Repository: https://github.com/goadesign/examples.git
Documentation: pkg.go.dev
# Functions
BuildPickPayload builds the payload for the sommelier pick endpoint from CLI flags.
DecodePickResponse returns a decoder for responses returned by the sommelier pick endpoint.
EncodePickRequest returns an encoder for requests sent to the sommelier pick server.
NewClient instantiates HTTP clients for all the sommelier service servers.
NewPickNoCriteria builds a sommelier service pick endpoint no_criteria error.
NewPickNoMatch builds a sommelier service pick endpoint no_match error.
NewPickRequestBody builds the HTTP request body from the payload of the "pick" endpoint of the "sommelier" service.
NewPickStoredBottleCollectionOK builds a "sommelier" service "pick" endpoint result from a HTTP "OK" response.
PickSommelierPath returns the URL path to the sommelier service pick HTTP endpoint.
ValidateComponentResponse runs the validations defined on ComponentResponse.
ValidateStoredBottleResponse runs the validations defined on StoredBottleResponse.
ValidateWineryResponse runs the validations defined on WineryResponse.
# Structs
Client lists the sommelier service endpoint HTTP clients.
ComponentResponse is used to define fields on response body types.
PickRequestBody is the type of the "sommelier" service "pick" endpoint HTTP request body.
StoredBottleResponse is used to define fields on response body types.
WineryResponse is used to define fields on response body types.
# 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.
PickResponseBody is the type of the "sommelier" service "pick" endpoint HTTP response body.