sysnotify

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func NewSysNotifyTask

func NewSysNotifyTask(name string, NotifyType NotifyType, task func() error) *sysNotifyTask

func RegisterSysNotifyTask

func RegisterSysNotifyTask(priority int, task *sysNotifyTask) error

func WaitCbk

func WaitCbk()

Types

type NotifyType

type NotifyType int
const (
	NotifyTypeEXIT NotifyType = iota + 1
	NotifyTypeRELOAD
)

type SysNotify

type SysNotify struct {
	// contains filtered or unexported fields
}

func (*SysNotify) Init

func (s *SysNotify) Init()

func (*SysNotify) RegisterSysNotifyTask

func (sn *SysNotify) RegisterSysNotifyTask(priority int, task *sysNotifyTask) error

func (*SysNotify) WaitCbk

func (sn *SysNotify) WaitCbk()

Jump to

Keyboard shortcuts

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