Documentation ¶
Overview ¶
Package godiator is simple Pub&Sub package. You can simply adds any numbers of events and adds any numbers of handlers. You can publish events and handles this events with your handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Name string Payload interface{} }
Event struct is simply contains name as string and payload as any type of value, you can send maps, arrays, simple strings or even nil (interface{} default value)
type Godiator ¶
type Godiator struct {
// contains filtered or unexported fields
}
Godiator struct is representing main struct for Godiator, also its store subscriptions.
Click to show internal directories.
Click to hide internal directories.