events

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Notify

func Notify(event string)

Notify 通知事件

func On

func On(event string, callback func())

On 增加事件回调

Types

type Event

type Event = string
const (
	EventStart Event = "start" // start loading
	EventQuit  Event = "quit"  // quit node gracefully

	EventSecurityConfigChanged Event = "securityConfigChanged" // 安全设置变更
)

Jump to

Keyboard shortcuts

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