connector

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	// contains filtered or unexported fields
}

Connector struct contains the connections

func NewConnector

func NewConnector(log *logrus.Logger) *Connector

NewConnector creates a new Connector object

func (*Connector) CloseAll

func (cn *Connector) CloseAll()

CloseAll closes all open connections

func (*Connector) GetConnections

func (cn *Connector) GetConnections() (map[string]connections.IConnection, error)

GetConnections holds all connections and reconnects/reopens them if necessary

func (*Connector) NewConnection

func (cn *Connector) NewConnection(name string, opts *connections.ConnectionOptions) error

NewConnection Add a new connection and initiates first contact connection

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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