Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChild ¶
func NewChild(parent app.EventScope) app.EventScope
NewChild create new instance of event scope
Types ¶
type ChildEventScope ¶
type ChildEventScope struct {
// contains filtered or unexported fields
}
ChildEventScope is event scope interface
func (*ChildEventScope) On ¶
func (es *ChildEventScope) On(eID interface{}, callback app.EventCallback)
On connect a function to event
func (*ChildEventScope) Trigger ¶
func (es *ChildEventScope) Trigger(eID interface{}, data interface{}) (err error)
Trigger run all function connected to event
type EventScope ¶
type EventScope struct {
// contains filtered or unexported fields
}
EventScope is event scope interface
func (*EventScope) On ¶
func (es *EventScope) On(eID interface{}, callback app.EventCallback)
On connect a function to event
func (*EventScope) Trigger ¶
func (es *EventScope) Trigger(eID interface{}, data interface{}) error
Trigger run all function connected to event
Click to show internal directories.
Click to hide internal directories.