Documentation ¶
Index ¶
- func BuildPickFunc(grpccli sommelierpb.SommelierClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
- func BuildPickPayload(sommelierPickMessage string) (*sommelier.Criteria, error)
- func DecodePickResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
- func EncodePickRequest(ctx context.Context, v interface{}, md *metadata.MD) (interface{}, error)
- func NewPickRequest(payload *sommelier.Criteria) *sommelierpb.PickRequest
- func NewPickResult(message *sommelierpb.StoredBottleCollection) sommelierviews.StoredBottleCollectionView
- func ValidateComponent(message *sommelierpb.Component) (err error)
- func ValidateStoredBottle(message *sommelierpb.StoredBottle) (err error)
- func ValidateStoredBottleCollection(message *sommelierpb.StoredBottleCollection) (err error)
- func ValidateWinery(message *sommelierpb.Winery) (err error)
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPickFunc ¶
func BuildPickFunc(grpccli sommelierpb.SommelierClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
BuildPickFunc builds the remote method to invoke for "sommelier" service "pick" endpoint.
func BuildPickPayload ¶
BuildPickPayload builds the payload for the sommelier pick endpoint from CLI flags.
func DecodePickResponse ¶
func DecodePickResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
DecodePickResponse decodes responses from the sommelier pick endpoint.
func EncodePickRequest ¶
EncodePickRequest encodes requests sent to sommelier pick endpoint.
func NewPickRequest ¶
func NewPickRequest(payload *sommelier.Criteria) *sommelierpb.PickRequest
NewPickRequest builds the gRPC request type from the payload of the "pick" endpoint of the "sommelier" service.
func NewPickResult ¶
func NewPickResult(message *sommelierpb.StoredBottleCollection) sommelierviews.StoredBottleCollectionView
NewPickResult builds the result type of the "pick" endpoint of the "sommelier" service from the gRPC response type.
func ValidateComponent ¶
func ValidateComponent(message *sommelierpb.Component) (err error)
ValidateComponent runs the validations defined on Component.
func ValidateStoredBottle ¶
func ValidateStoredBottle(message *sommelierpb.StoredBottle) (err error)
ValidateStoredBottle runs the validations defined on StoredBottle.
func ValidateStoredBottleCollection ¶
func ValidateStoredBottleCollection(message *sommelierpb.StoredBottleCollection) (err error)
ValidateStoredBottleCollection runs the validations defined on StoredBottleCollection.
func ValidateWinery ¶
func ValidateWinery(message *sommelierpb.Winery) (err error)
ValidateWinery runs the validations defined on Winery.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client lists the service endpoint gRPC clients.
func NewClient ¶
func NewClient(cc *grpc.ClientConn, opts ...grpc.CallOption) *Client
NewClient instantiates gRPC client for all the sommelier service servers.