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

# Functions

DecodeAddRequest decodes requests sent to "storage" service "add" endpoint.
DecodeMultiAddRequest decodes requests sent to "storage" service "multi_add" endpoint.
DecodeMultiUpdateRequest decodes requests sent to "storage" service "multi_update" endpoint.
DecodeRateRequest decodes requests sent to "storage" service "rate" endpoint.
DecodeRemoveRequest decodes requests sent to "storage" service "remove" endpoint.
DecodeShowRequest decodes requests sent to "storage" service "show" endpoint.
EncodeAddResponse encodes responses from the "storage" service "add" endpoint.
EncodeListResponse encodes responses from the "storage" service "list" endpoint.
EncodeMultiAddResponse encodes responses from the "storage" service "multi_add" endpoint.
EncodeMultiUpdateResponse encodes responses from the "storage" service "multi_update" endpoint.
EncodeRateResponse encodes responses from the "storage" service "rate" endpoint.
EncodeRemoveResponse encodes responses from the "storage" service "remove" endpoint.
EncodeShowResponse encodes responses from the "storage" service "show" endpoint.
New instantiates the server struct with the storage service endpoints.
NewAddHandler creates a gRPC handler which serves the "storage" service "add" endpoint.
NewAddPayload builds the payload of the "add" endpoint of the "storage" service from the gRPC request type.
NewAddResponse builds the gRPC response type from the result of the "add" endpoint of the "storage" service.
NewListHandler creates a gRPC handler which serves the "storage" service "list" endpoint.
NewMultiAddHandler creates a gRPC handler which serves the "storage" service "multi_add" endpoint.
NewMultiAddPayload builds the payload of the "multi_add" endpoint of the "storage" service from the gRPC request type.
NewMultiAddResponse builds the gRPC response type from the result of the "multi_add" endpoint of the "storage" service.
NewMultiUpdateHandler creates a gRPC handler which serves the "storage" service "multi_update" endpoint.
NewMultiUpdatePayload builds the payload of the "multi_update" endpoint of the "storage" service from the gRPC request type.
NewMultiUpdateResponse builds the gRPC response type from the result of the "multi_update" endpoint of the "storage" service.
NewRateHandler creates a gRPC handler which serves the "storage" service "rate" endpoint.
NewRatePayload builds the payload of the "rate" endpoint of the "storage" service from the gRPC request type.
NewRateResponse builds the gRPC response type from the result of the "rate" endpoint of the "storage" service.
NewRemoveHandler creates a gRPC handler which serves the "storage" service "remove" endpoint.
NewRemovePayload builds the payload of the "remove" endpoint of the "storage" service from the gRPC request type.
NewRemoveResponse builds the gRPC response type from the result of the "remove" endpoint of the "storage" service.
NewShowHandler creates a gRPC handler which serves the "storage" service "show" endpoint.
NewShowNotFoundError builds the gRPC error response type from the error of the "show" endpoint of the "storage" service.
NewShowPayload builds the payload of the "show" endpoint of the "storage" service from the gRPC request type.
NewShowResponse builds the gRPC response type from the result of the "show" endpoint of the "storage" service.
NewStoredBottleCollection builds the gRPC response type from the result of the "list" endpoint of the "storage" service.
ValidateAddRequest runs the validations defined on AddRequest.
ValidateBottle runs the validations defined on Bottle.
ValidateComponent runs the validations defined on Component.
ValidateMultiAddRequest runs the validations defined on MultiAddRequest.
ValidateMultiUpdateRequest runs the validations defined on MultiUpdateRequest.
ValidateWinery runs the validations defined on Winery.

# Structs

Server implements the storagepb.StorageServer interface.

# Interfaces

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