Documentation ¶
Overview ¶
Package grpc provides a gRPC client for the Users service.
Index ¶
- func DecodeGRPCCreateUserResponse(_ context.Context, grpcReply interface{}) (interface{}, error)
- func DecodeGRPCDeleteUserResponse(_ context.Context, grpcReply interface{}) (interface{}, error)
- func DecodeGRPCReadUserResponse(_ context.Context, grpcReply interface{}) (interface{}, error)
- func DecodeGRPCUpdateUserResponse(_ context.Context, grpcReply interface{}) (interface{}, error)
- func EncodeGRPCCreateUserRequest(_ context.Context, request interface{}) (interface{}, error)
- func EncodeGRPCDeleteUserRequest(_ context.Context, request interface{}) (interface{}, error)
- func EncodeGRPCReadUserRequest(_ context.Context, request interface{}) (interface{}, error)
- func EncodeGRPCUpdateUserRequest(_ context.Context, request interface{}) (interface{}, error)
- func New(conn *grpc.ClientConn, options ...ClientOption) (pb.UsersServer, error)
- type ClientOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeGRPCCreateUserResponse ¶
DecodeGRPCCreateUserResponse is a transport/grpc.DecodeResponseFunc that converts a gRPC createuser reply to a user-domain createuser response. Primarily useful in a client.
func DecodeGRPCDeleteUserResponse ¶
DecodeGRPCDeleteUserResponse is a transport/grpc.DecodeResponseFunc that converts a gRPC deleteuser reply to a user-domain deleteuser response. Primarily useful in a client.
func DecodeGRPCReadUserResponse ¶
DecodeGRPCReadUserResponse is a transport/grpc.DecodeResponseFunc that converts a gRPC readuser reply to a user-domain readuser response. Primarily useful in a client.
func DecodeGRPCUpdateUserResponse ¶
DecodeGRPCUpdateUserResponse is a transport/grpc.DecodeResponseFunc that converts a gRPC updateuser reply to a user-domain updateuser response. Primarily useful in a client.
func EncodeGRPCCreateUserRequest ¶
EncodeGRPCCreateUserRequest is a transport/grpc.EncodeRequestFunc that converts a user-domain createuser request to a gRPC createuser request. Primarily useful in a client.
func EncodeGRPCDeleteUserRequest ¶
EncodeGRPCDeleteUserRequest is a transport/grpc.EncodeRequestFunc that converts a user-domain deleteuser request to a gRPC deleteuser request. Primarily useful in a client.
func EncodeGRPCReadUserRequest ¶
EncodeGRPCReadUserRequest is a transport/grpc.EncodeRequestFunc that converts a user-domain readuser request to a gRPC readuser request. Primarily useful in a client.
func EncodeGRPCUpdateUserRequest ¶
EncodeGRPCUpdateUserRequest is a transport/grpc.EncodeRequestFunc that converts a user-domain updateuser request to a gRPC updateuser 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