lifecycle

package
v0.2.10-1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *lifecycleImpl

Types

type GetLifecycle added in v0.2.4

type GetLifecycle interface {
	GetAfterStops() []executor
	GetBeforeStops() []executor
	GetAfterStarts() []executor
	GetBeforeStarts() []executor
}

type Handler added in v0.2.4

type Handler func(lc Lifecycle)

type Lifecycle

type Lifecycle interface {
	AfterStop(f func())
	BeforeStop(f func())
	AfterStart(f func())
	BeforeStart(f func())
}

Jump to

Keyboard shortcuts

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