stop

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

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

func (*Registry) AddToBack

func (l *Registry) AddToBack(stoppable1 Stoppable) error

func (*Registry) AddToFront

func (l *Registry) AddToFront(stoppable Stoppable) error

func (*Registry) StopAllInOrder

func (l *Registry) StopAllInOrder(logger zerolog.Logger) error

type Stoppable

type Stoppable interface {

	// Stop will be called as soon as the shutdown signal was caught.
	// Hence, within this method all teardown actions should be done (e.g. free resources, leave task main loops, ...)
	Stop() error

	// String ... to meet the Stringer interface
	String() string
}

Jump to

Keyboard shortcuts

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