Documentation ¶
Index ¶
Constants ¶
View Source
const (
SESSION_EXPIRIED = iota + 1
)
Variables ¶
View Source
var DefaultEventBus = AsyncEventBus{ // contains filtered or unexported fields }
Functions ¶
This section is empty.
Types ¶
type AsyncEventBus ¶
type AsyncEventBus struct {
// contains filtered or unexported fields
}
func (*AsyncEventBus) Publish ¶
func (bus *AsyncEventBus) Publish(event Event)
func (*AsyncEventBus) Subscribe ¶
func (bus *AsyncEventBus) Subscribe(eventType EventType, handler EventHandler)
type EventBus ¶
type EventBus interface { Publish(event Event) Subscribe(eventType EventType, handler EventHandler) }
type EventHandler ¶
type EventHandler func(event Event)
Click to show internal directories.
Click to hide internal directories.