grpc

package
v0.0.0-...-f1b8dfb Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2017 License: Unlicense Imports: 8 Imported by: 0

Documentation

Overview

Package grpc provides a gRPC client for the Rello service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeGRPCCheckListWebhookResponse

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

DecodeGRPCCheckListWebhookResponse is a transport/grpc.DecodeResponseFunc that converts a gRPC checklistwebhook reply to a user-domain checklistwebhook response. Primarily useful in a client.

func DecodeGRPCEmptyRPCResponse

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

DecodeGRPCEmptyRPCResponse is a transport/grpc.DecodeResponseFunc that converts a gRPC emptyrpc reply to a user-domain emptyrpc response. Primarily useful in a client.

func EncodeGRPCCheckListWebhookRequest

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

EncodeGRPCCheckListWebhookRequest is a transport/grpc.EncodeRequestFunc that converts a user-domain checklistwebhook request to a gRPC checklistwebhook request. Primarily useful in a client.

func EncodeGRPCEmptyRPCRequest

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

EncodeGRPCEmptyRPCRequest is a transport/grpc.EncodeRequestFunc that converts a user-domain emptyrpc request to a gRPC emptyrpc request. Primarily useful in a client.

func New

func New(conn *grpc.ClientConn, options ...ClientOption) (pb.RelloServer, 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