signals

package
v1.1.16 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 13

Documentation

Index

Constants

View Source
const (
	LevelRoot    uint8 = 0
	LevelRequest uint8 = 20
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StopChan

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

func SetupSignalHandler

func SetupSignalHandler(logger log.Logger) (stopCh *StopChan)

func SignalHandler

func SignalHandler() (stopCh *StopChan)

func (*StopChan) Add

func (s *StopChan) Add(delta int)

func (*StopChan) AddFor

func (s *StopChan) AddFor(level uint8, delta int)

func (*StopChan) AddRequest

func (s *StopChan) AddRequest(delta int)

func (*StopChan) Channel

func (s *StopChan) Channel() <-chan struct{}

func (*StopChan) Done

func (s *StopChan) Done()

func (*StopChan) DoneFor

func (s *StopChan) DoneFor(level uint8)

func (*StopChan) DoneRequest

func (s *StopChan) DoneRequest()

func (*StopChan) Wait

func (s *StopChan) Wait()

func (*StopChan) WaitFor

func (s *StopChan) WaitFor(level uint8)

func (*StopChan) WaitRequest

func (s *StopChan) WaitRequest()

Jump to

Keyboard shortcuts

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