Versions in this module Expand all Collapse all v1 v1.0.0 Aug 3, 2021 Changes in this version + const Client + const Connecting + const Idle + const Ready + const Server + const ShutDown + const TransientFailure + var DefaultConnectionType = Client + var DefaultInsecureState = true + var DefaultPoolSize uint64 = 60 + var DefaultServerPort = "50051" + type ConnState connectivity.State + type ConnectionType int + type GRPC struct + func NewGRPCConnection(opts ...Options) (*GRPC, error) + func (g *GRPC) GetConn() (*grpc.ClientConn, error) + func (g *GRPC) ListenAndServe() error + func (g *GRPC) TestGetConn() (*grpc.ClientConn, error) + type Options func(*GRPC) + func WithAddress(address string) Options + func WithConnectionType(connectionType ConnectionType) Options + func WithPort(port string) Options + func WithServerOptions(serverOption ...grpc.ServerOption) Options