package
2.2.4+incompatible
Repository: https://github.com/goadesign/examples.git
Documentation: pkg.go.dev
# Functions
AddStoragePath returns the URL path to the storage service add HTTP endpoint.
BuildAddPayload builds the payload for the storage add endpoint from CLI flags.
BuildMultiAddPayload builds the payload for the storage multi_add endpoint from CLI flags.
BuildMultiUpdatePayload builds the payload for the storage multi_update endpoint from CLI flags.
BuildRemovePayload builds the payload for the storage remove endpoint from CLI flags.
BuildShowPayload builds the payload for the storage show endpoint from CLI flags.
DecodeAddResponse returns a decoder for responses returned by the storage add endpoint.
DecodeListResponse returns a decoder for responses returned by the storage list endpoint.
DecodeMultiAddResponse returns a decoder for responses returned by the storage multi_add endpoint.
DecodeMultiUpdateResponse returns a decoder for responses returned by the storage multi_update endpoint.
DecodeRateResponse returns a decoder for responses returned by the storage rate endpoint.
DecodeRemoveResponse returns a decoder for responses returned by the storage remove endpoint.
DecodeShowResponse returns a decoder for responses returned by the storage show endpoint.
EncodeAddRequest returns an encoder for requests sent to the storage add server.
EncodeMultiAddRequest returns an encoder for requests sent to the storage multi_add server.
EncodeMultiUpdateRequest returns an encoder for requests sent to the storage multi_update server.
EncodeRateRequest returns an encoder for requests sent to the storage rate server.
EncodeShowRequest returns an encoder for requests sent to the storage show server.
ListStoragePath returns the URL path to the storage service list HTTP endpoint.
MultiAddStoragePath returns the URL path to the storage service multi_add HTTP endpoint.
MultiUpdateStoragePath returns the URL path to the storage service multi_update HTTP endpoint.
NewAddRequestBody builds the HTTP request body from the payload of the "add" endpoint of the "storage" service.
NewBottleRequestBody builds the HTTP request body from the payload of the "multi_add" endpoint of the "storage" service.
NewClient instantiates HTTP clients for all the storage service servers.
NewListStoredBottleCollectionOK builds a "storage" service "list" endpoint result from a HTTP "OK" response.
NewMultiUpdateRequestBody builds the HTTP request body from the payload of the "multi_update" endpoint of the "storage" service.
NewShowNotFound builds a storage service show endpoint not_found error.
NewShowStoredBottleOK builds a "storage" service "show" endpoint result from a HTTP "OK" response.
NewStorageMultiAddEncoder returns an encoder to encode the multipart request for the "storage" service "multi_add" endpoint.
NewStorageMultiUpdateEncoder returns an encoder to encode the multipart request for the "storage" service "multi_update" endpoint.
RateStoragePath returns the URL path to the storage service rate HTTP endpoint.
RemoveStoragePath returns the URL path to the storage service remove HTTP endpoint.
ShowStoragePath returns the URL path to the storage service show HTTP endpoint.
ValidateBottleRequestBody runs the validations defined on BottleRequestBody.
ValidateComponentRequestBody runs the validations defined on ComponentRequestBody.
ValidateComponentResponse runs the validations defined on ComponentResponse.
ValidateComponentResponseBody runs the validations defined on ComponentResponseBody.
ValidateShowNotFoundResponseBody runs the validations defined on show_not_found_response_body.
ValidateStoredBottleResponse runs the validations defined on StoredBottleResponse.
ValidateWineryRequestBody runs the validations defined on WineryRequestBody.
ValidateWineryResponse runs the validations defined on WineryResponse.
ValidateWineryResponseBody runs the validations defined on WineryResponseBody.
# Structs
AddRequestBody is the type of the "storage" service "add" endpoint HTTP request body.
BottleRequestBody is used to define fields on request body types.
Client lists the storage service endpoint HTTP clients.
ComponentRequestBody is used to define fields on request body types.
ComponentResponse is used to define fields on response body types.
ComponentResponseBody is used to define fields on response body types.
MultiUpdateRequestBody is the type of the "storage" service "multi_update" endpoint HTTP request body.
ShowNotFoundResponseBody is the type of the "storage" service "show" endpoint HTTP response body for the "not_found" error.
ShowResponseBody is the type of the "storage" service "show" endpoint HTTP response body.
StoredBottleResponse is used to define fields on response body types.
WineryRequestBody is used to define fields on request body types.
WineryResponse is used to define fields on response body types.
WineryResponseBody is used to define fields on response body types.
# Type aliases
ListResponseBody is the type of the "storage" service "list" endpoint HTTP response body.
StorageMultiAddEncoderFunc is the type to encode multipart request for the "storage" service "multi_add" endpoint.
StorageMultiUpdateEncoderFunc is the type to encode multipart request for the "storage" service "multi_update" endpoint.