Documentation ¶
Overview ¶
Package grpc provides a gRPC client for the Model service.
Index ¶
- func DecodeGRPCCreateActionResponse(_ context.Context, grpcReply interface{}) (interface{}, error)
- func DecodeGRPCCreateOccurrenceResponse(_ context.Context, grpcReply interface{}) (interface{}, error)
- func DecodeGRPCReadActionResponse(_ context.Context, grpcReply interface{}) (interface{}, error)
- func DecodeGRPCReadActionsResponse(_ context.Context, grpcReply interface{}) (interface{}, error)
- func DecodeGRPCReadOccurrencesByDateResponse(_ context.Context, grpcReply interface{}) (interface{}, error)
- func DecodeGRPCReadOccurrencesResponse(_ context.Context, grpcReply interface{}) (interface{}, error)
- func EncodeGRPCCreateActionRequest(_ context.Context, request interface{}) (interface{}, error)
- func EncodeGRPCCreateOccurrenceRequest(_ context.Context, request interface{}) (interface{}, error)
- func EncodeGRPCReadActionRequest(_ context.Context, request interface{}) (interface{}, error)
- func EncodeGRPCReadActionsRequest(_ context.Context, request interface{}) (interface{}, error)
- func EncodeGRPCReadOccurrencesByDateRequest(_ context.Context, request interface{}) (interface{}, error)
- func EncodeGRPCReadOccurrencesRequest(_ context.Context, request interface{}) (interface{}, error)
- func New(conn *grpc.ClientConn, options ...ClientOption) (pb.ModelServer, error)
- type ClientOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeGRPCCreateActionResponse ¶
DecodeGRPCCreateActionResponse is a transport/grpc.DecodeResponseFunc that converts a gRPC createaction reply to a user-domain createaction response. Primarily useful in a client.
func DecodeGRPCCreateOccurrenceResponse ¶
func DecodeGRPCCreateOccurrenceResponse(_ context.Context, grpcReply interface{}) (interface{}, error)
DecodeGRPCCreateOccurrenceResponse is a transport/grpc.DecodeResponseFunc that converts a gRPC createoccurrence reply to a user-domain createoccurrence response. Primarily useful in a client.
func DecodeGRPCReadActionResponse ¶
DecodeGRPCReadActionResponse is a transport/grpc.DecodeResponseFunc that converts a gRPC readaction reply to a user-domain readaction response. Primarily useful in a client.
func DecodeGRPCReadActionsResponse ¶
DecodeGRPCReadActionsResponse is a transport/grpc.DecodeResponseFunc that converts a gRPC readactions reply to a user-domain readactions response. Primarily useful in a client.
func DecodeGRPCReadOccurrencesByDateResponse ¶
func DecodeGRPCReadOccurrencesByDateResponse(_ context.Context, grpcReply interface{}) (interface{}, error)
DecodeGRPCReadOccurrencesByDateResponse is a transport/grpc.DecodeResponseFunc that converts a gRPC readoccurrencesbydate reply to a user-domain readoccurrencesbydate response. Primarily useful in a client.
func DecodeGRPCReadOccurrencesResponse ¶
func DecodeGRPCReadOccurrencesResponse(_ context.Context, grpcReply interface{}) (interface{}, error)
DecodeGRPCReadOccurrencesResponse is a transport/grpc.DecodeResponseFunc that converts a gRPC readoccurrences reply to a user-domain readoccurrences response. Primarily useful in a client.
func EncodeGRPCCreateActionRequest ¶
EncodeGRPCCreateActionRequest is a transport/grpc.EncodeRequestFunc that converts a user-domain createaction request to a gRPC createaction request. Primarily useful in a client.
func EncodeGRPCCreateOccurrenceRequest ¶
EncodeGRPCCreateOccurrenceRequest is a transport/grpc.EncodeRequestFunc that converts a user-domain createoccurrence request to a gRPC createoccurrence request. Primarily useful in a client.
func EncodeGRPCReadActionRequest ¶
EncodeGRPCReadActionRequest is a transport/grpc.EncodeRequestFunc that converts a user-domain readaction request to a gRPC readaction request. Primarily useful in a client.
func EncodeGRPCReadActionsRequest ¶
EncodeGRPCReadActionsRequest is a transport/grpc.EncodeRequestFunc that converts a user-domain readactions request to a gRPC readactions request. Primarily useful in a client.
func EncodeGRPCReadOccurrencesByDateRequest ¶
func EncodeGRPCReadOccurrencesByDateRequest(_ context.Context, request interface{}) (interface{}, error)
EncodeGRPCReadOccurrencesByDateRequest is a transport/grpc.EncodeRequestFunc that converts a user-domain readoccurrencesbydate request to a gRPC readoccurrencesbydate request. Primarily useful in a client.
func EncodeGRPCReadOccurrencesRequest ¶
EncodeGRPCReadOccurrencesRequest is a transport/grpc.EncodeRequestFunc that converts a user-domain readoccurrences request to a gRPC readoccurrences request. Primarily useful in a client.
func New ¶
func New(conn *grpc.ClientConn, options ...ClientOption) (pb.ModelServer, 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