stop

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartOsSignalsTransmitter

func StartOsSignalsTransmitter(logger *zap.Logger, flags ...*Flag)

Types

type Flag

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

func NewFlag

func NewFlag() Flag

func (*Flag) IsHard

func (s *Flag) IsHard() bool

func (*Flag) IsHardOrSoft

func (s *Flag) IsHardOrSoft() bool

func (*Flag) IsSoft

func (s *Flag) IsSoft() bool

func (*Flag) SetHard

func (s *Flag) SetHard() bool

func (*Flag) SetOnHardStopHandler

func (s *Flag) SetOnHardStopHandler(function func())

func (*Flag) SetSoft

func (s *Flag) SetSoft() bool

Jump to

Keyboard shortcuts

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