grpc

package
v0.0.0-...-b44b43e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2017 License: Unlicense Imports: 8 Imported by: 1

Documentation

Overview

Package grpc provides a gRPC client for the Ambition service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeGRPCCreateActionResponse

func DecodeGRPCCreateActionResponse(_ context.Context, grpcReply interface{}) (interface{}, error)

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

func DecodeGRPCReadActionResponse(_ context.Context, grpcReply interface{}) (interface{}, error)

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

func DecodeGRPCReadActionsResponse(_ context.Context, grpcReply interface{}) (interface{}, error)

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

func EncodeGRPCCreateActionRequest(_ context.Context, request interface{}) (interface{}, error)

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

func EncodeGRPCCreateOccurrenceRequest(_ context.Context, request interface{}) (interface{}, error)

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

func EncodeGRPCReadActionRequest(_ context.Context, request interface{}) (interface{}, error)

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

func EncodeGRPCReadActionsRequest(_ context.Context, request interface{}) (interface{}, error)

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

func EncodeGRPCReadOccurrencesRequest(_ context.Context, request interface{}) (interface{}, error)

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.AmbitionServer, 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL