Documentation ¶
Index ¶
- func NewRunComponent(name string, opts ...RunComponentOption) components.Component
- type Config
- type Option
- type RunComponent
- type RunComponentHook
- type RunComponentHooks
- type RunComponentOption
- func RunAfter(dependencies ...string) RunComponentOption
- func RunAfterConfigure(fn RunComponentHook) RunComponentOption
- func RunAfterShutdown(fn RunComponentHook) RunComponentOption
- func RunAfterStart(fn RunComponentHook) RunComponentOption
- func RunComponentOptions(opts ...RunComponentOption) RunComponentOption
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRunComponent ¶
func NewRunComponent(name string, opts ...RunComponentOption) components.Component
Types ¶
type Option ¶
func Component ¶
func Component(c components.Component, opts ...components.Option) Option
func Run ¶
func Run(name string, opts ...RunComponentOption) Option
type RunComponent ¶
type RunComponent struct { components.Base // contains filtered or unexported fields }
func (*RunComponent) Configure ¶
func (c *RunComponent) Configure(opts ...components.Option) error
func (*RunComponent) Shutdown ¶
func (c *RunComponent) Shutdown() error
func (*RunComponent) Start ¶
func (c *RunComponent) Start() error
type RunComponentHook ¶
type RunComponentHook func(*RunComponent) error
type RunComponentHooks ¶
type RunComponentHooks struct {
// contains filtered or unexported fields
}
type RunComponentOption ¶
type RunComponentOption func(*RunComponent)
func RunAfter ¶
func RunAfter(dependencies ...string) RunComponentOption
func RunAfterConfigure ¶
func RunAfterConfigure(fn RunComponentHook) RunComponentOption
func RunAfterShutdown ¶
func RunAfterShutdown(fn RunComponentHook) RunComponentOption
func RunAfterStart ¶
func RunAfterStart(fn RunComponentHook) RunComponentOption
func RunComponentOptions ¶
func RunComponentOptions(opts ...RunComponentOption) RunComponentOption
Click to show internal directories.
Click to hide internal directories.