ncsignal

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: Apache-2.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 SignalFunc

type SignalFunc func(os.Signal)

type SignalServer

type SignalServer map[os.Signal]SignalFunc

func NewServer

func NewServer() SignalServer

func (SignalServer) Register

func (s SignalServer) Register(sig os.Signal, f SignalFunc) SignalServer

func (SignalServer) Registers

func (s SignalServer) Registers(m map[os.Signal]SignalFunc) SignalServer

func (SignalServer) Serve

func (s SignalServer) Serve(done <-chan struct{})

func (SignalServer) Start

func (s SignalServer) Start(done <-chan struct{})

Jump to

Keyboard shortcuts

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