Documentation ¶ Index ¶ type Lifecycle func (l *Lifecycle) Add(r Runner) func (l *Lifecycle) Start(ctx context.Context) error type Runner type RunnerFunc func (r RunnerFunc) Run(ctx context.Context) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Lifecycle ¶ type Lifecycle struct { // contains filtered or unexported fields } func (*Lifecycle) Add ¶ added in v0.1.0 func (l *Lifecycle) Add(r Runner) func (*Lifecycle) Start ¶ func (l *Lifecycle) Start(ctx context.Context) error type Runner ¶ added in v0.1.0 type Runner interface { Run(ctx context.Context) error } type RunnerFunc ¶ added in v0.1.0 type RunnerFunc func(ctx context.Context) error func (RunnerFunc) Run ¶ added in v0.1.0 func (r RunnerFunc) Run(ctx context.Context) error Source Files ¶ View all Source files lifecycle.gotypes.go Click to show internal directories. Click to hide internal directories.