Documentation
¶
Index ¶
Constants ¶
View Source
const ( EventNewUser = "addUser" EventRemoveUser = "removeUser" )
View Source
const ( EventHello = "switchHello" EventDump = "switchDump" EventWriteCfg = "switchWriteCfg" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthNetwork ¶
type AuthNetwork struct { Iface genericNetwork.NetworkInterface Events chan map[string]duser.UserAccess EventDump chan map[string]duser.UserAccess }
AuthNetwork network object
func CreateAuthNetwork ¶
func CreateAuthNetwork() (*AuthNetwork, error)
CreateAuthNetwork create network server object
func (AuthNetwork) LocalConnection ¶
func (net AuthNetwork) LocalConnection(conf pkg.ServiceConfig) error
LocalConnection connect service to server broker
func (AuthNetwork) SendCommand ¶
func (net AuthNetwork) SendCommand(topic, content string) error
SendCommand to server
type ServerNetwork ¶
type ServerNetwork struct { Iface genericNetwork.NetworkInterface Events chan map[string]sd.SwitchStatus }
ServerNetwork network object
func CreateServerNetwork ¶
func CreateServerNetwork() (*ServerNetwork, error)
CreateServerNetwork create network server object
func (ServerNetwork) LocalConnection ¶
func (net ServerNetwork) LocalConnection(conf pkg.ServiceConfig) error
LocalConnection connect service to server broker
func (ServerNetwork) SendCommand ¶
func (net ServerNetwork) SendCommand(topic, content string) error
SendCommand to server
Click to show internal directories.
Click to hide internal directories.