Documentation
¶
Index ¶
- func BuildSayHelloFunc(grpccli hellopb.HelloClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
- func BuildSayHelloPayload(helloSayHelloMessage string) (*hello.SayHelloPayload, error)
- func DecodeSayHelloResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
- func EncodeSayHelloRequest(ctx context.Context, v interface{}, md *metadata.MD) (interface{}, error)
- func NewProtoSayHelloRequest(payload *hello.SayHelloPayload) *hellopb.SayHelloRequest
- func NewSayHelloResult(message *hellopb.SayHelloResponse) string
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSayHelloFunc ¶
func BuildSayHelloFunc(grpccli hellopb.HelloClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
BuildSayHelloFunc builds the remote method to invoke for "hello" service "say-hello" endpoint.
func BuildSayHelloPayload ¶
func BuildSayHelloPayload(helloSayHelloMessage string) (*hello.SayHelloPayload, error)
BuildSayHelloPayload builds the payload for the hello say-hello endpoint from CLI flags.
func DecodeSayHelloResponse ¶
func DecodeSayHelloResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
DecodeSayHelloResponse decodes responses from the hello say-hello endpoint.
func EncodeSayHelloRequest ¶
func EncodeSayHelloRequest(ctx context.Context, v interface{}, md *metadata.MD) (interface{}, error)
EncodeSayHelloRequest encodes requests sent to hello say-hello endpoint.
func NewProtoSayHelloRequest ¶
func NewProtoSayHelloRequest(payload *hello.SayHelloPayload) *hellopb.SayHelloRequest
NewProtoSayHelloRequest builds the gRPC request type from the payload of the "say-hello" endpoint of the "hello" service.
func NewSayHelloResult ¶
func NewSayHelloResult(message *hellopb.SayHelloResponse) string
NewSayHelloResult builds the result type of the "say-hello" endpoint of the "hello" 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 hello service servers.