Documentation ¶
Overview ¶
Package grpc provides a gRPC client for the Echo service.
Index ¶
- func DecodeGRPCEchoResponse(_ context.Context, grpcReply interface{}) (interface{}, error)
- func DecodeGRPCLouderGetResponse(_ context.Context, grpcReply interface{}) (interface{}, error)
- func DecodeGRPCLouderResponse(_ context.Context, grpcReply interface{}) (interface{}, error)
- func EncodeGRPCEchoRequest(_ context.Context, request interface{}) (interface{}, error)
- func EncodeGRPCLouderGetRequest(_ context.Context, request interface{}) (interface{}, error)
- func EncodeGRPCLouderRequest(_ context.Context, request interface{}) (interface{}, error)
- func New(conn *grpc.ClientConn, options ...ClientOption) (pb.EchoServer, error)
- type ClientOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeGRPCEchoResponse ¶
DecodeGRPCEchoResponse is a transport/grpc.DecodeResponseFunc that converts a gRPC echo reply to a user-domain echo response. Primarily useful in a client.
func DecodeGRPCLouderGetResponse ¶
DecodeGRPCLouderGetResponse is a transport/grpc.DecodeResponseFunc that converts a gRPC louderget reply to a user-domain louderget response. Primarily useful in a client.
func DecodeGRPCLouderResponse ¶
DecodeGRPCLouderResponse is a transport/grpc.DecodeResponseFunc that converts a gRPC louder reply to a user-domain louder response. Primarily useful in a client.
func EncodeGRPCEchoRequest ¶
EncodeGRPCEchoRequest is a transport/grpc.EncodeRequestFunc that converts a user-domain echo request to a gRPC echo request. Primarily useful in a client.
func EncodeGRPCLouderGetRequest ¶
EncodeGRPCLouderGetRequest is a transport/grpc.EncodeRequestFunc that converts a user-domain louderget request to a gRPC louderget request. Primarily useful in a client.
func EncodeGRPCLouderRequest ¶
EncodeGRPCLouderRequest is a transport/grpc.EncodeRequestFunc that converts a user-domain louder request to a gRPC louder request. Primarily useful in a client.
func New ¶
func New(conn *grpc.ClientConn, options ...ClientOption) (pb.EchoServer, error)
New returns an service backed by a gRPC client connection. It is the responsibility of the caller to dial, and later close, the connection.
Types ¶
type ClientOption ¶
type ClientOption func(*clientConfig) error
ClientOption is a function that modifies the client config
func CtxValuesToSend ¶
func CtxValuesToSend(keys ...string) ClientOption