connection

package
v2.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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) DoRequest

func (c *Connection) DoRequest(ctx context.Context, fn func(context.Context) error) error

func (*Connection) LastConnectError

func (c *Connection) LastConnectError() error

func (*Connection) SetStateDisconnected

func (c *Connection) SetStateDisconnected(err error)

func (*Connection) Shutdown

func (c *Connection) Shutdown(ctx context.Context) error

func (*Connection) StartConnection

func (c *Connection) StartConnection(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL