xsignals

package
v0.0.0-...-89edfd8 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signal

type Signal struct {
	Bindings map[os.Signal]func()
	// contains filtered or unexported fields
}

func New

func New() *Signal

func (*Signal) Bind

func (s *Signal) Bind(sig os.Signal, f func()) (err error)

func (*Signal) Start

func (s *Signal) Start() *Signal

Jump to

Keyboard shortcuts

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