Documentation ¶
Index ¶
- func BuildDivideFunc(grpccli calcpb.CalcClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
- func BuildDividePayload(calcDivideMessage string) (*calc.DividePayload, error)
- func DecodeDivideResponse(ctx context.Context, v any, hdr, trlr metadata.MD) (any, error)
- func EncodeDivideRequest(ctx context.Context, v any, md *metadata.MD) (any, error)
- func NewDivideDivByZeroError(message *calcpb.DivideDivByZeroError) *calc.DivByZero
- func NewDivideResult(message *calcpb.DivideResponse) *calc.DivideResult
- func NewProtoDivideRequest(payload *calc.DividePayload) *calcpb.DivideRequest
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDivideFunc ¶
func BuildDivideFunc(grpccli calcpb.CalcClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
BuildDivideFunc builds the remote method to invoke for "calc" service "divide" endpoint.
func BuildDividePayload ¶
func BuildDividePayload(calcDivideMessage string) (*calc.DividePayload, error)
BuildDividePayload builds the payload for the calc divide endpoint from CLI flags.
func DecodeDivideResponse ¶
DecodeDivideResponse decodes responses from the calc divide endpoint.
func EncodeDivideRequest ¶
EncodeDivideRequest encodes requests sent to calc divide endpoint.
func NewDivideDivByZeroError ¶
func NewDivideDivByZeroError(message *calcpb.DivideDivByZeroError) *calc.DivByZero
NewDivideDivByZeroError builds the error type of the "divide" endpoint of the "calc" service from the gRPC error response type.
func NewDivideResult ¶
func NewDivideResult(message *calcpb.DivideResponse) *calc.DivideResult
NewDivideResult builds the result type of the "divide" endpoint of the "calc" service from the gRPC response type.
func NewProtoDivideRequest ¶
func NewProtoDivideRequest(payload *calc.DividePayload) *calcpb.DivideRequest
NewProtoDivideRequest builds the gRPC request type from the payload of the "divide" endpoint of the "calc" service.
Types ¶
type Client ¶
type Client struct { // contains filtered or unexported fields } // NewClient instantiates gRPC client for all the calc service servers.
Client lists the service endpoint gRPC clients.
func NewClient ¶
func NewClient(cc *grpc.ClientConn, opts ...grpc.CallOption) *Client