lifecycle

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StartersGroupName = "lifecycle.starters"
View Source
var StoppersGroupName = "lifecycle.stoppers"

Functions

func AppendStarters

func AppendStarters(lc fx.Lifecycle, starters ...Starter)

func AppendStoppers

func AppendStoppers(lc fx.Lifecycle, stoppers ...Stopper)

func Module

func Module() di.Node

func NewBackgroundContext

func NewBackgroundContext() context.Context

Types

type Starter

type Starter interface {
	Start(ctx context.Context) error
}

type Stopper

type Stopper interface {
	Stop(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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