startup

package
v2.2.3+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FireAfter

func FireAfter(typ string)

func FireBefore

func FireBefore(typ string)

func OnAfter

func OnAfter(typ string, eventFunc EventFunc)

func OnBefore

func OnBefore(typ string, eventFunc EventFunc)

func TypeList

func TypeList() []string

Types

type Event

type Event struct {
	Before []EventFunc
	After  []EventFunc
}

func MustGetEvent

func MustGetEvent(typ string) *Event

func NewEvent

func NewEvent() *Event

func (*Event) AddAfter

func (e *Event) AddAfter(fn EventFunc) *Event

func (*Event) AddBefore

func (e *Event) AddBefore(fn EventFunc) *Event

func (*Event) RunAfter

func (e *Event) RunAfter() *Event

func (*Event) RunBefore

func (e *Event) RunBefore() *Event

type EventFunc

type EventFunc func()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL