Documentation ¶
Index ¶
- func DecodePickRequest(ctx context.Context, v interface{}, md metadata.MD) (interface{}, error)
- func EncodePickResponse(ctx context.Context, v interface{}, hdr, trlr *metadata.MD) (interface{}, error)
- func NewPickHandler(endpoint goa.Endpoint, h goagrpc.UnaryHandler) goagrpc.UnaryHandler
- func NewPickPayload(message *sommelierpb.PickRequest) *sommelier.Criteria
- func NewStoredBottleCollection(result sommelierviews.StoredBottleCollectionView) *sommelierpb.StoredBottleCollection
- type ErrorNamer
- 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 ¶
func EncodePickResponse(ctx context.Context, v interface{}, hdr, trlr *metadata.MD) (interface{}, error)
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 NewStoredBottleCollection ¶
func NewStoredBottleCollection(result sommelierviews.StoredBottleCollectionView) *sommelierpb.StoredBottleCollection
NewStoredBottleCollection builds the gRPC response type from the result of the "pick" endpoint of the "sommelier" service.
Types ¶
type ErrorNamer ¶
type ErrorNamer interface {
ErrorName() string
}
ErrorNamer is an interface implemented by generated error structs that exposes the name of the error as defined in the expr.
type Server ¶
type Server struct {
PickH goagrpc.UnaryHandler
}
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.