grpc

package
v0.0.0-...-6c74aba Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: Unlicense Imports: 8 Imported by: 0

Documentation

Overview

Package grpc provides a gRPC client for the Echo service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeGRPCEchoResponse

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

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

func DecodeGRPCLouderGetResponse

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

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

func DecodeGRPCLouderResponse

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

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

func EncodeGRPCEchoRequest

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

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

func EncodeGRPCLouderGetRequest

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

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

func EncodeGRPCLouderRequest

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

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

func New

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