Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Manager manager
Manager controls all publish/subscribe actions for connections
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { ID string ClientName string IPAddress string ConnectedAt time.Time Subscribed []string Out chan message.SocketMessage }
Connection maintains info about the connected device and subscribed events
func NewConnection ¶
func NewConnection(ipAddress string, clientName string) Connection
NewConnection constructs a new Connection
Click to show internal directories.
Click to hide internal directories.