Documentation
¶
Index ¶
Constants ¶
View Source
const ( EVENT_KIND_UNOBSERABLE = 0 EVENT_KIND_OBSERABLE = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventPublisher ¶
type ObserableEvent ¶
type ObserableEvent struct {
EventMeta
// contains filtered or unexported fields
}
func NewObserableEvent ¶
func NewObserableEvent(rarity int, record any) *ObserableEvent
func (ObserableEvent) Kind ¶
func (e ObserableEvent) Kind() uint
func (ObserableEvent) Rarity ¶
func (e ObserableEvent) Rarity() int
func (ObserableEvent) Record ¶
func (e ObserableEvent) Record() any
func (ObserableEvent) Timeline ¶
func (e ObserableEvent) Timeline() string
type ObserableListener ¶
type ObserableListener struct {
// contains filtered or unexported fields
}
func (*ObserableListener) Listen ¶
func (l *ObserableListener) Listen(e Event) error
func (*ObserableListener) Want ¶
func (l *ObserableListener) Want(e Event) bool
type ObserablePublisher ¶
type ObserablePublisher struct {
}
func (*ObserablePublisher) Publish ¶
func (p *ObserablePublisher) Publish(e Event) error
type UnobserableEvent ¶
type UnobserableEvent struct {
EventMeta
}
maybe Use of some meta information or more weird states
func NewUnobserableEvent ¶
func NewUnobserableEvent() *UnobserableEvent
func (UnobserableEvent) Kind ¶
func (e UnobserableEvent) Kind() uint
func (UnobserableEvent) Rarity ¶
func (e UnobserableEvent) Rarity() int
func (UnobserableEvent) Record ¶
func (e UnobserableEvent) Record() any
func (UnobserableEvent) Timeline ¶
func (e UnobserableEvent) Timeline() string
Click to show internal directories.
Click to hide internal directories.