Documentation
¶
Overview ¶
Simple Event System
Index ¶
Constants ¶
View Source
const T_BUY = "BUY"
View Source
const T_CREATED = "CREATED"
View Source
const T_ENDED = "ENDED"
View Source
const T_PAID = "PAID"
View Source
const T_PURCHASED = "PURCHASED"
View Source
const T_SELL = "SELL"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventManager ¶
type EventManager struct {
EventChannel chan Event
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() EventManager
func (*EventManager) Emit ¶
func (em *EventManager) Emit(event Event)
type FlightPlan ¶
type FlightPlan struct {
Type string
Plan models.FlightPlan
// contains filtered or unexported fields
}
func (*FlightPlan) Name ¶
func (e *FlightPlan) Name() string
func (FlightPlan) New ¶
func (e FlightPlan) New(args ...interface{}) Event
func (*FlightPlan) Time ¶
func (e *FlightPlan) Time() time.Time
type ShipOrder ¶
type ShipPurchased ¶
func (*ShipPurchased) Name ¶
func (e *ShipPurchased) Name() string
func (ShipPurchased) New ¶
func (e ShipPurchased) New(args ...interface{}) Event
func (*ShipPurchased) Time ¶
func (e *ShipPurchased) Time() time.Time
type UserRegistered ¶
type UserRegistered struct {
Username string
Token string
// contains filtered or unexported fields
}
func (*UserRegistered) Name ¶
func (e *UserRegistered) Name() string
func (UserRegistered) New ¶
func (e UserRegistered) New(args ...interface{}) Event
func (*UserRegistered) Time ¶
func (e *UserRegistered) Time() time.Time
type UserSwitched ¶
func (*UserSwitched) Name ¶
func (e *UserSwitched) Name() string
func (UserSwitched) New ¶
func (e UserSwitched) New(args ...interface{}) Event
func (*UserSwitched) Time ¶
func (e *UserSwitched) Time() time.Time
Click to show internal directories.
Click to hide internal directories.