Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectLifecycle ¶
Types ¶
type FunctionHook ¶
type FunctionHook struct {
// contains filtered or unexported fields
}
func (*FunctionHook) OnShutdown ¶
func (f *FunctionHook) OnShutdown() error
func (*FunctionHook) OnStartup ¶
func (f *FunctionHook) OnStartup() error
type Lifecycle ¶
type Lifecycle struct {
// contains filtered or unexported fields
}
func NewLifecycle ¶
func NewLifecycle() *Lifecycle
func (*Lifecycle) ExecuteShutdown ¶
func (*Lifecycle) ExecuteStartup ¶
func (*Lifecycle) Register ¶
func (l *Lifecycle) Register(hook LifecycleHook) *Lifecycle
func (*Lifecycle) SetShutdownTimeout ¶
type LifecycleHook ¶
func LoadFromDir ¶
func LoadFromDir(srcDir string) (LifecycleHook, error)
func LoadFromPlugin ¶
func LoadFromPlugin(pluginPath string) (LifecycleHook, error)
Click to show internal directories.
Click to hide internal directories.