Documentation
¶
Index ¶
- func NewStatsWrapper(statsHandler stats.Handler) stats.Handler
- type ClientConnInterface
- type DummyConn
- func (dc *DummyConn) Close() error
- func (dc *DummyConn) GetState() connectivity.State
- func (dc *DummyConn) Invoke(_ context.Context, _ string, _ any, _ any, _ ...grpc.CallOption) error
- func (dc *DummyConn) NewStream(_ context.Context, _ *grpc.StreamDesc, _ string, _ ...grpc.CallOption) (grpc.ClientStream, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientConnInterface ¶
type ClientConnInterface interface { Invoke(ctx context.Context, method string, args any, reply any, opts ...grpc.CallOption) error GetState() connectivity.State NewStream(ctx context.Context, desc *grpc.StreamDesc, method string, opts ...grpc.CallOption) (grpc.ClientStream, error) Close() error }
func GetConnection ¶
func GetConnection(host string, safe bool, options ...grpc.DialOption) (ClientConnInterface, error)
TODO: Fix Host <-> Url
type DummyConn ¶
type DummyConn struct{}
func (*DummyConn) GetState ¶
func (dc *DummyConn) GetState() connectivity.State
func (*DummyConn) NewStream ¶
func (dc *DummyConn) NewStream(_ context.Context, _ *grpc.StreamDesc, _ string, _ ...grpc.CallOption) (grpc.ClientStream, error)
Click to show internal directories.
Click to hide internal directories.