Documentation
¶
Index ¶
- func BuildDivideFunc(grpccli dividerpb.DividerClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
- func BuildDividePayload(dividerDivideMessage string) (*divider.FloatOperands, error)
- func BuildIntegerDivideFunc(grpccli dividerpb.DividerClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
- func BuildIntegerDividePayload(dividerIntegerDivideMessage string) (*divider.IntOperands, error)
- func DecodeDivideResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
- func DecodeIntegerDivideResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
- func EncodeDivideRequest(ctx context.Context, v interface{}, md *metadata.MD) (interface{}, error)
- func EncodeIntegerDivideRequest(ctx context.Context, v interface{}, md *metadata.MD) (interface{}, error)
- func NewDivideRequest(payload *divider.FloatOperands) *dividerpb.DivideRequest
- func NewDivideResult(message *dividerpb.DivideResponse) float64
- func NewIntegerDivideRequest(payload *divider.IntOperands) *dividerpb.IntegerDivideRequest
- func NewIntegerDivideResult(message *dividerpb.IntegerDivideResponse) int
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDivideFunc ¶
func BuildDivideFunc(grpccli dividerpb.DividerClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
BuildDivideFunc builds the remote method to invoke for "divider" service "divide" endpoint.
func BuildDividePayload ¶
func BuildDividePayload(dividerDivideMessage string) (*divider.FloatOperands, error)
BuildDividePayload builds the payload for the divider divide endpoint from CLI flags.
func BuildIntegerDivideFunc ¶
func BuildIntegerDivideFunc(grpccli dividerpb.DividerClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
BuildIntegerDivideFunc builds the remote method to invoke for "divider" service "integer_divide" endpoint.
func BuildIntegerDividePayload ¶
func BuildIntegerDividePayload(dividerIntegerDivideMessage string) (*divider.IntOperands, error)
BuildIntegerDividePayload builds the payload for the divider integer_divide endpoint from CLI flags.
func DecodeDivideResponse ¶
func DecodeDivideResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
DecodeDivideResponse decodes responses from the divider divide endpoint.
func DecodeIntegerDivideResponse ¶
func DecodeIntegerDivideResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
DecodeIntegerDivideResponse decodes responses from the divider integer_divide endpoint.
func EncodeDivideRequest ¶
EncodeDivideRequest encodes requests sent to divider divide endpoint.
func EncodeIntegerDivideRequest ¶
func EncodeIntegerDivideRequest(ctx context.Context, v interface{}, md *metadata.MD) (interface{}, error)
EncodeIntegerDivideRequest encodes requests sent to divider integer_divide endpoint.
func NewDivideRequest ¶
func NewDivideRequest(payload *divider.FloatOperands) *dividerpb.DivideRequest
NewDivideRequest builds the gRPC request type from the payload of the "divide" endpoint of the "divider" service.
func NewDivideResult ¶
func NewDivideResult(message *dividerpb.DivideResponse) float64
NewDivideResult builds the result type of the "divide" endpoint of the "divider" service from the gRPC response type.
func NewIntegerDivideRequest ¶
func NewIntegerDivideRequest(payload *divider.IntOperands) *dividerpb.IntegerDivideRequest
NewIntegerDivideRequest builds the gRPC request type from the payload of the "integer_divide" endpoint of the "divider" service.
func NewIntegerDivideResult ¶
func NewIntegerDivideResult(message *dividerpb.IntegerDivideResponse) int
NewIntegerDivideResult builds the result type of the "integer_divide" endpoint of the "divider" service from the gRPC response type.
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 divider service servers.
func (*Client) IntegerDivide ¶
IntegerDivide calls the "IntegerDivide" function in dividerpb.DividerClient interface.