hooks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunShutdownHooks

func RunShutdownHooks(ctx context.Context, hooks []ShutdownHook) error

func RunStartupHooks

func RunStartupHooks(hooks []StartupHook) error

Types

type ShutdownHook

type ShutdownHook interface {
	OnShutdown(context.Context) error
}

type StartupHook

type StartupHook interface {
	OnStartup() error
}

Jump to

Keyboard shortcuts

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