Documentation ¶
Index ¶
- func BuildAddFunc(grpccli calcpb.CalcClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
- func BuildAddPayload(calcAddMessage string) (*calc.AddPayload, error)
- func DecodeAddResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
- func EncodeAddRequest(ctx context.Context, v interface{}, md *metadata.MD) (interface{}, error)
- func NewAddRequest(payload *calc.AddPayload) *calcpb.AddRequest
- func NewAddResult(message *calcpb.AddResponse) int
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAddFunc ¶
func BuildAddFunc(grpccli calcpb.CalcClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
BuildAddFunc builds the remote method to invoke for "calc" service "add" endpoint.
func BuildAddPayload ¶
func BuildAddPayload(calcAddMessage string) (*calc.AddPayload, error)
BuildAddPayload builds the payload for the calc add endpoint from CLI flags.
func DecodeAddResponse ¶
func DecodeAddResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
DecodeAddResponse decodes responses from the calc add endpoint.
func EncodeAddRequest ¶
EncodeAddRequest encodes requests sent to calc add endpoint.
func NewAddRequest ¶
func NewAddRequest(payload *calc.AddPayload) *calcpb.AddRequest
NewAddRequest builds the gRPC request type from the payload of the "add" endpoint of the "calc" service.
func NewAddResult ¶
func NewAddResult(message *calcpb.AddResponse) int
NewAddResult builds the result type of the "add" endpoint of the "calc" 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 calc service servers.
Click to show internal directories.
Click to hide internal directories.