server

package
v0.0.0-...-dfdfd72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodePickRequest

func DecodePickRequest(ctx context.Context, v any, md metadata.MD) (any, error)

DecodePickRequest decodes requests sent to "sommelier" service "pick" endpoint.

func EncodePickResponse

func EncodePickResponse(ctx context.Context, v any, hdr, trlr *metadata.MD) (any, 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 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

Server implements the sommelierpb.SommelierServer interface.

func New

New instantiates the server struct with the sommelier service endpoints.

func (*Server) Pick

Pick implements the "Pick" method in sommelierpb.SommelierServer interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL