Documentation
¶
Overview ¶
Package grpc provides a gRPC client for the Users service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeGRPCSayHelloResponse ¶
DecodeGRPCSayHelloResponse is a transport/grpc.DecodeResponseFunc that converts a gRPC sayhello reply to a user-domain sayhello response. Primarily useful in a client.
func EncodeGRPCSayHelloRequest ¶
EncodeGRPCSayHelloRequest is a transport/grpc.EncodeRequestFunc that converts a user-domain sayhello request to a gRPC sayhello request. Primarily useful in a client.
func New ¶
func New(conn *grpc.ClientConn, options ...ClientOption) (pb.UsersServer, 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
Click to show internal directories.
Click to hide internal directories.