signal

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2018 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SignalSet

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

func NewSignalSet

func NewSignalSet() *SignalSet

NewSignalSet 新建一个signalset并返回

func (*SignalSet) Handle

func (ss *SignalSet) Handle(sig os.Signal, args ...interface{})

Handle 处理接收到的信号

func (*SignalSet) Register

func (ss *SignalSet) Register(sig os.Signal, handler interface{})

Register 注册某个signal的处理函数,handler应该是一个可执行的函数

Jump to

Keyboard shortcuts

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