Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { Config BackendConfig Mqtt *utils.MqttConnection Srv *http3.Server UplinkConnectionMutex sync.Mutex UplinkConnections map[string]*WaitForClose ConnectionPool *ConnectionPool }
func NewBackend ¶
func NewBackend(config BackendConfig) (*Backend, error)
func (*Backend) DeleteUplinkConnection ¶
func (*Backend) DeleteUplinkConnectionWithLock ¶
func (*Backend) StartBackendConfigStream ¶
type BackendConfig ¶
type Connection ¶
type ConnectionPool ¶
type ConnectionPool struct {
// contains filtered or unexported fields
}
func NewConnectionPool ¶
func NewConnectionPool(fns ...EventFn) *ConnectionPool
func (*ConnectionPool) Setup ¶
func (cp *ConnectionPool) Setup(schema string, host string) (*Connection, error)
type EventFn ¶
type EventFn = func(Action, string, *Connection)
Click to show internal directories.
Click to hide internal directories.