Documentation ¶
Index ¶
- func NewClient(cc *grpc.ClientConn) otlptrace.Client
- 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) 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 ¶
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(cc *grpc.ClientConn, 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.