Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConnContextClosed = errors.New("grpcclient: 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 LazyConnContextOption ¶
type LazyConnContextOption func(*lazyConnContextOptions)
func CallOptions ¶
func CallOptions(copts ...grpc.CallOption) LazyConnContextOption
func DialOptions ¶
func DialOptions(dopts ...grpc.DialOption) LazyConnContextOption
Click to show internal directories.
Click to hide internal directories.