Documentation ¶
Index ¶
- func BuildMultiplyFunc(grpccli calcpb.CalcClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
- func BuildMultiplyPayload(calcMultiplyMessage string) (*calc.MultiplyPayload, error)
- func DecodeMultiplyResponse(ctx context.Context, v any, hdr, trlr metadata.MD) (any, error)
- func EncodeMultiplyRequest(ctx context.Context, v any, md *metadata.MD) (any, error)
- func NewMultiplyResult(message *calcpb.MultiplyResponse) int
- func NewProtoMultiplyRequest(payload *calc.MultiplyPayload) *calcpb.MultiplyRequest
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMultiplyFunc ¶
func BuildMultiplyFunc(grpccli calcpb.CalcClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
BuildMultiplyFunc builds the remote method to invoke for "calc" service "multiply" endpoint.
func BuildMultiplyPayload ¶
func BuildMultiplyPayload(calcMultiplyMessage string) (*calc.MultiplyPayload, error)
BuildMultiplyPayload builds the payload for the calc multiply endpoint from CLI flags.
func DecodeMultiplyResponse ¶
DecodeMultiplyResponse decodes responses from the calc multiply endpoint.
func EncodeMultiplyRequest ¶
EncodeMultiplyRequest encodes requests sent to calc multiply endpoint.
func NewMultiplyResult ¶
func NewMultiplyResult(message *calcpb.MultiplyResponse) int
NewMultiplyResult builds the result type of the "multiply" endpoint of the "calc" service from the gRPC response type.
func NewProtoMultiplyRequest ¶
func NewProtoMultiplyRequest(payload *calc.MultiplyPayload) *calcpb.MultiplyRequest
NewProtoMultiplyRequest builds the gRPC request type from the payload of the "multiply" endpoint of the "calc" service.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client lists the service endpoint gRPC clients.
func NewClient ¶
func NewClient(cc *grpc.ClientConn, opts ...grpc.CallOption) *Client
NewClient instantiates gRPC client for all the calc service servers.