client

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrProtoUnsupported = errors.New("unsupported protocol")

Functions

func NewGRPCClientConn

func NewGRPCClientConn(opts ...Option) (*grpc.ClientConn, error)

Types

type Option

type Option func(*cfg)

func WithDialTimeout added in v1.20.3

func WithDialTimeout(v time.Duration) Option

func WithGRPCConn

func WithGRPCConn(v *grpc.ClientConn) Option

func WithGRPCDialOpts

func WithGRPCDialOpts(v []grpc.DialOption) Option

func WithNetConn

func WithNetConn(v net.Conn) Option

func WithNetworkAddress

func WithNetworkAddress(v string) Option

type Protocol

type Protocol uint32
const (
	ProtoGRPC Protocol
)

func (Protocol) String

func (p Protocol) String() string

Jump to

Keyboard shortcuts

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