observer

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

func Attach(o Observer)

Attach adds an observer to the notification list for graceful shutdown.

func GetWaitGroup

func GetWaitGroup() *sync.WaitGroup

func Initialize

func Initialize()

Initialize starts the observation of system signals to trigger graceful shutdown.

func WaitRunningTimeout

func WaitRunningTimeout() bool

Types

type Observer

type Observer interface {
	// Close performs the cleanup or shutdown logic for the component.
	Close()
}

Observer is the default contract for components that need to perform a graceful shutdown.

Jump to

Keyboard shortcuts

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