Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEvents ¶
NewEvents just wraps the NewEvent for multipe events and executes an callback for each of the events. this way we can stick to a more generic solution for a couple of events
func ResetAllEvents ¶
func ResetAllEvents()
func ResetAllListener ¶
func ResetAllListener()
func UpdateEvents ¶
func UpdateEvents() error
Types ¶
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
func (*Event) AddListener ¶
AddListener adds listener to the event
func (*Event) ClearListener ¶
func (*Event) SetArguments ¶
SetArguments adds or changes the arguments for the event
type ListenerContainer ¶
type ListenerContainer struct {
// contains filtered or unexported fields
}
func NewListener ¶
func NewListener(name string, calbck func(any ...interface{})) *ListenerContainer
func (*ListenerContainer) RegisterToEvent ¶
func (trig *ListenerContainer) RegisterToEvent(eventName string)
Click to show internal directories.
Click to hide internal directories.