server

package
v2.2.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodePickRequest

func DecodePickRequest(ctx context.Context, v interface{}, md metadata.MD) (interface{}, error)

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

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

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