Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationEngine ¶
type NotificationEngine interface { Initialize(id string) Attach(Watcher) error Detach(Watcher) bool Notify() }
NotificationEngine interface for the notification system Defines the requirements to create a gobox
type Pusher ¶
Pusher struct that satisfies the NotificationEngine interface
func (*Pusher) InitUDPush ¶
InitUDPush 'constructs' the UDP notification engine The e on the reciever stands for event
func (*Pusher) Initialize ¶
Initialize is a 'constructor' for the pusher struct
func (*Pusher) ShowWatchers ¶
func (e *Pusher) ShowWatchers()
ShowWatchers Print current watchers in pusher
type Watcher ¶
Watcher Struct that satisfies the WatcherEngine This type requires an auth mecanism in order to work in a safe way
func (*Watcher) Update ¶
func (w *Watcher) Update()
Update Get update from pusher... Golint forces me to do this http://tinyurl.com/lhzjvmm
type WatcherEngine ¶
type WatcherEngine interface {
Update()
}
WatcherEngine Interface for watcher (Observer) system Defines the requirements to create a gobox notification watcher.