Documentation ¶
Index ¶
- func DecodePickRequest(ctx context.Context, v any, md metadata.MD) (any, error)
- func EncodePickResponse(ctx context.Context, v any, hdr, trlr *metadata.MD) (any, error)
- func NewPickHandler(endpoint goa.Endpoint, h goagrpc.UnaryHandler) goagrpc.UnaryHandler
- func NewPickPayload(message *sommelierpb.PickRequest) *sommelier.Criteria
- func NewProtoStoredBottleCollection(result sommelierviews.StoredBottleCollectionView) *sommelierpb.StoredBottleCollection
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePickRequest ¶
DecodePickRequest decodes requests sent to "sommelier" service "pick" endpoint.
func EncodePickResponse ¶
EncodePickResponse encodes responses from the "sommelier" service "pick" endpoint.
func NewPickHandler ¶
func NewPickHandler(endpoint goa.Endpoint, h goagrpc.UnaryHandler) goagrpc.UnaryHandler
NewPickHandler creates a gRPC handler which serves the "sommelier" service "pick" endpoint.
func NewPickPayload ¶
func NewPickPayload(message *sommelierpb.PickRequest) *sommelier.Criteria
NewPickPayload builds the payload of the "pick" endpoint of the "sommelier" service from the gRPC request type.
func NewProtoStoredBottleCollection ¶
func NewProtoStoredBottleCollection(result sommelierviews.StoredBottleCollectionView) *sommelierpb.StoredBottleCollection
NewProtoStoredBottleCollection builds the gRPC response type from the result of the "pick" endpoint of the "sommelier" service.
Types ¶
type Server ¶
type Server struct { PickH goagrpc.UnaryHandler sommelierpb.UnimplementedSommelierServer }
Server implements the sommelierpb.SommelierServer interface.
func New ¶
func New(e *sommelier.Endpoints, uh goagrpc.UnaryHandler) *Server
New instantiates the server struct with the sommelier service endpoints.
func (*Server) Pick ¶
func (s *Server) Pick(ctx context.Context, message *sommelierpb.PickRequest) (*sommelierpb.StoredBottleCollection, error)
Pick implements the "Pick" method in sommelierpb.SommelierServer interface.