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.
DecodeAddRequest returns a decoder for requests sent to the storage add endpoint.
DecodeMultiAddRequest returns a decoder for requests sent to the storage multi_add endpoint.
DecodeMultiUpdateRequest returns a decoder for requests sent to the storage multi_update endpoint.
DecodeRateRequest returns a decoder for requests sent to the storage rate endpoint.
DecodeRemoveRequest returns a decoder for requests sent to the storage remove endpoint.
DecodeShowRequest returns a decoder for requests sent to the storage show endpoint.
EncodeAddResponse returns an encoder for responses returned by the storage add endpoint.
EncodeListResponse returns an encoder for responses returned by the storage list endpoint.
EncodeMultiAddResponse returns an encoder for responses returned by the storage multi_add endpoint.
EncodeMultiUpdateResponse returns an encoder for responses returned by the storage multi_update endpoint.
EncodeRateResponse returns an encoder for responses returned by the storage rate endpoint.
EncodeRemoveResponse returns an encoder for responses returned by the storage remove endpoint.
EncodeShowError returns an encoder for errors returned by the show storage endpoint.
EncodeShowResponse returns an encoder for responses returned by the storage show endpoint.
ListStoragePath returns the URL path to the storage service list HTTP endpoint.
Mount configures the mux to serve the storage endpoints.
MountAddHandler configures the mux to serve the "storage" service "add" endpoint.
MountListHandler configures the mux to serve the "storage" service "list" endpoint.
MountMultiAddHandler configures the mux to serve the "storage" service "multi_add" endpoint.
MountMultiUpdateHandler configures the mux to serve the "storage" service "multi_update" endpoint.
MountRateHandler configures the mux to serve the "storage" service "rate" endpoint.
MountRemoveHandler configures the mux to serve the "storage" service "remove" endpoint.
MountShowHandler configures the mux to serve the "storage" service "show" 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.
New instantiates HTTP handlers for all the storage service endpoints using the provided encoder and decoder.
NewAddBottle builds a storage service add endpoint payload.
NewAddHandler creates a HTTP handler which loads the HTTP request and calls the "storage" service "add" endpoint.
NewListHandler creates a HTTP handler which loads the HTTP request and calls the "storage" service "list" endpoint.
NewMultiAddBottle builds a storage service multi_add endpoint payload.
NewMultiAddHandler creates a HTTP handler which loads the HTTP request and calls the "storage" service "multi_add" endpoint.
NewMultiUpdateHandler creates a HTTP handler which loads the HTTP request and calls the "storage" service "multi_update" endpoint.
NewMultiUpdatePayload builds a storage service multi_update endpoint payload.
NewRateHandler creates a HTTP handler which loads the HTTP request and calls the "storage" service "rate" endpoint.
NewRemoveHandler creates a HTTP handler which loads the HTTP request and calls the "storage" service "remove" endpoint.
NewRemovePayload builds a storage service remove endpoint payload.
NewShowHandler creates a HTTP handler which loads the HTTP request and calls the "storage" service "show" endpoint.
NewShowNotFoundResponseBody builds the HTTP response body from the result of the "show" endpoint of the "storage" service.
NewShowPayload builds a storage service show endpoint payload.
NewShowResponseBody builds the HTTP response body from the result of the "show" endpoint of the "storage" service.
NewShowResponseBodyTiny builds the HTTP response body from the result of the "show" endpoint of the "storage" service.
NewStorageMultiAddDecoder returns a decoder to decode the multipart request for the "storage" service "multi_add" endpoint.
NewStorageMultiUpdateDecoder returns a decoder to decode the multipart request for the "storage" service "multi_update" endpoint.
NewStoredBottleResponseTinyCollection builds the HTTP response body from the result of the "list" endpoint of the "storage" service.
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.
ValidateAddRequestBody runs the validations defined on AddRequestBody.
ValidateBottleRequestBody runs the validations defined on BottleRequestBody.
ValidateComponentRequestBody runs the validations defined on ComponentRequestBody.
ValidateMultiUpdateRequestBody runs the validations defined on multi_update_request_body.
ValidateWineryRequestBody runs the validations defined on WineryRequestBody.

# Structs

AddRequestBody is the type of the "storage" service "add" endpoint HTTP request body.
BottleRequestBody is used to define fields on request body types.
ComponentRequestBody is used to define fields on request body types.
ComponentResponseBody is used to define fields on response body types.
MountPoint holds information about the mounted endpoints.
MultiUpdateRequestBody is the type of the "storage" service "multi_update" endpoint HTTP request body.
Server lists the storage service endpoint HTTP handlers.
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.
ShowResponseBodyTiny is the type of the "storage" service "show" endpoint HTTP response body.
StoredBottleResponseTiny is used to define fields on response body types.
WineryRequestBody is used to define fields on request body types.
WineryResponseBodyTiny 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

StorageMultiAddDecoderFunc is the type to decode multipart request for the "storage" service "multi_add" endpoint.
StorageMultiUpdateDecoderFunc is the type to decode multipart request for the "storage" service "multi_update" endpoint.
StoredBottleResponseTinyCollection is the type of the "storage" service "list" endpoint HTTP response body.