Documentation ¶
Index ¶
- type Connection
- func (c *Connection) Connected() bool
- func (c *Connection) ContextWithMetadata(ctx context.Context) context.Context
- func (c *Connection) ContextWithStop(ctx context.Context) (context.Context, context.CancelFunc)
- func (c *Connection) DoRequest(ctx context.Context, fn func(context.Context) error) error
- func (c *Connection) LastConnectError() error
- func (c *Connection) SetStateDisconnected(err error)
- func (c *Connection) Shutdown(ctx context.Context) error
- func (c *Connection) StartConnection(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { SCfg otlpconfig.SignalConfig // contains filtered or unexported fields }
func NewConnection ¶
func NewConnection(cfg otlpconfig.Config, sCfg otlpconfig.SignalConfig, handler func(cc *grpc.ClientConn)) *Connection
func (*Connection) Connected ¶
func (c *Connection) Connected() bool
func (*Connection) ContextWithMetadata ¶
func (c *Connection) ContextWithMetadata(ctx context.Context) context.Context
func (*Connection) ContextWithStop ¶
func (c *Connection) ContextWithStop(ctx context.Context) (context.Context, context.CancelFunc)
func (*Connection) LastConnectError ¶
func (c *Connection) LastConnectError() error
func (*Connection) SetStateDisconnected ¶
func (c *Connection) SetStateDisconnected(err error)
func (*Connection) StartConnection ¶
func (c *Connection) StartConnection(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.