grpcclient

package
v0.0.0-...-417428f Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConnContextClosed = errors.New("grpcutil: client connection context closed")

Functions

This section is empty.

Types

type ConnContext

type ConnContext interface {
	GetConn(ctx context.Context, addr string) (*grpc.ClientConn, error)
	CallOptions() []grpc.CallOption
	Shutdown(context.Context) error
}

func NewLazyConnContext

func NewLazyConnContext(opt ...LazyConnContextOption) ConnContext

type DialError

type DialError struct {
	Err error
	Add string
}

func (*DialError) Error

func (d *DialError) Error() string

type LazyConnContextOption

type LazyConnContextOption func(*lazyConnContextOptions)

func CallOptions

func CallOptions(copts ...grpc.CallOption) LazyConnContextOption

func DialOptions

func DialOptions(dopts ...grpc.DialOption) LazyConnContextOption

Jump to

Keyboard shortcuts

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