Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ServiceStarted time.Time
)
global vars contain staged update data that will be sent to the communication mediums
Functions ¶
This section is empty.
Types ¶
type Base ¶
Base enforces standard variables across communication packages
func (*Base) IsConnected ¶
IsConnected returns if the package is connected to a server and/or ready to send
type CommsStatus ¶
CommsStatus stores the status of a comms relayer
type IComm ¶
type IComm []ICommunicate
IComm is the main interface array across the communication packages
func (IComm) GetEnabledCommunicationMediums ¶
GetEnabledCommunicationMediums prints out enabled and connected communication packages (#debug output only)
func (IComm) GetStatus ¶
func (c IComm) GetStatus() map[string]CommsStatus
GetStatus returns the status of the comms relayers
type ICommunicate ¶
type ICommunicate interface { Setup(config *config.CommunicationsConfig) Connect() error PushEvent(Event) error IsEnabled() bool IsConnected() bool GetName() string }
ICommunicate enforces standard functions across communication packages
Click to show internal directories.
Click to hide internal directories.