Documentation ¶
Overview ¶
Package event hides the retrieval of events from different sources
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EventChan chan Event
EventChan is a global reference to the channel
Functions ¶
Types ¶
type Type ¶ added in v0.6.0
type Type uint8
Type represents an event type
const ( EventNone Type = iota // no event was given EventAnonymise // toggle anonymising data. EventFinished // please exit the program EventViewNext // show me the next view EventViewPrev // show me the previous view EventDecreasePollTime // reduce the poll time (if possible) EventIncreasePollTime // increase the poll time EventHelp // provide me with help EventToggleWantRelative // toggle between wanting absolute or relative stats EventResetStatistics // reset the current stats back to zero EventResizeScreen // not really a event but a state change EventUnknown // something weird has happened EventError // some error )
Event* hold the different event types as integer values
Click to show internal directories.
Click to hide internal directories.