event

package
v0.0.0-...-4cd9d19 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OnInit

func OnInit(s core.IService, opt ...Option) (err error)

func Register

func Register(eId core.Event_Key, f interface{}) (err error)

func RegisterGO

func RegisterGO(eId core.Event_Key, f interface{}) (err error)

func RemoveEvent

func RemoveEvent(eId core.Event_Key, f interface{}) (err error)

移除事件

func TriggerEvent

func TriggerEvent(eId core.Event_Key, agr ...interface{})

触发

Types

type FunctionInfo

type FunctionInfo struct {
	Function  reflect.Value
	Goroutine bool
}

type Option

type Option func(*Options)

type Options

type Options struct {
}

Jump to

Keyboard shortcuts

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