Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
Name string
// contains filtered or unexported fields
}
Connection struct contains all variables necessary for the connection
type ConnectionOptions ¶
type ConnectionOptions struct {
Addr string
RCONPassword string
ConnectTimeout time.Duration
CacheExpiration time.Duration
CacheCleanupInterval time.Duration
}
ConnectionOptions options for a Connection
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector struct contains the connections
func (*Connector) GetConnections ¶
func (cn *Connector) GetConnections() (map[string]*Connection, error)
GetConnections holds all connections and reconnects/reopens them if necessary
func (*Connector) NewConnection ¶
func (cn *Connector) NewConnection(name string, opts *ConnectionOptions) error
NewConnection Add a new connection and initiates first contact connection
Click to show internal directories.
Click to hide internal directories.