Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PubSub ¶
type PubSub struct {
// contains filtered or unexported fields
}
PubSub implements a simple event broker which allows to send event across the application.
func NewPubSub ¶
func NewPubSub(log logrus.FieldLogger) *PubSub
type Subscriber ¶
type Subscriber interface {
Subscribe(evType interface{}, evHandler Handler)
}
Click to show internal directories.
Click to hide internal directories.