Documentation
¶
Overview ¶
Package compdef defines basic types used for components
Package compdef defines basic types used for components ¶
Package compdef defines basic types used for components
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hook ¶
type Hook struct { OnStart lchFunc OnStop lchFunc }
Hook represents a function pair for a component's startup and shutdown
type In ¶ added in v0.55.0
type In struct{}
In has no semantic meaning, but makes conversion a bit easier
type Lifecycle ¶
type Lifecycle interface {
Append(h Hook)
}
Lifecycle may be added to a component's requires struct if it wants to add hooks
type Shutdowner ¶ added in v0.57.0
type Shutdowner interface {
Shutdown() error
}
Shutdowner may be added to a component's dependencies so it can shutdown the application
Click to show internal directories.
Click to hide internal directories.