Documentation ¶
Index ¶
- func DecodeMultiplyRequest(ctx context.Context, v any, md metadata.MD) (any, error)
- func EncodeMultiplyResponse(ctx context.Context, v any, hdr, trlr *metadata.MD) (any, error)
- func NewMultiplyHandler(endpoint goa.Endpoint, h goagrpc.UnaryHandler) goagrpc.UnaryHandler
- func NewMultiplyPayload(message *calcpb.MultiplyRequest) *calc.MultiplyPayload
- func NewProtoMultiplyResponse(result *calcviews.MultiplyresponseView) *calcpb.MultiplyResponse
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeMultiplyRequest ¶
DecodeMultiplyRequest decodes requests sent to "calc" service "multiply" endpoint.
func EncodeMultiplyResponse ¶
EncodeMultiplyResponse encodes responses from the "calc" service "multiply" endpoint.
func NewMultiplyHandler ¶
func NewMultiplyHandler(endpoint goa.Endpoint, h goagrpc.UnaryHandler) goagrpc.UnaryHandler
NewMultiplyHandler creates a gRPC handler which serves the "calc" service "multiply" endpoint.
func NewMultiplyPayload ¶
func NewMultiplyPayload(message *calcpb.MultiplyRequest) *calc.MultiplyPayload
NewMultiplyPayload builds the payload of the "multiply" endpoint of the "calc" service from the gRPC request type.
func NewProtoMultiplyResponse ¶
func NewProtoMultiplyResponse(result *calcviews.MultiplyresponseView) *calcpb.MultiplyResponse
NewProtoMultiplyResponse builds the gRPC response type from the result of the "multiply" endpoint of the "calc" service.
Types ¶
type Server ¶
type Server struct { MultiplyH goagrpc.UnaryHandler calcpb.UnimplementedCalcServer }
Server implements the calcpb.CalcServer interface.
func New ¶
func New(e *calc.Endpoints, uh goagrpc.UnaryHandler) *Server
New instantiates the server struct with the calc service endpoints.
func (*Server) Multiply ¶
func (s *Server) Multiply(ctx context.Context, message *calcpb.MultiplyRequest) (*calcpb.MultiplyResponse, error)
Multiply implements the "Multiply" method in calcpb.CalcServer interface.