Documentation ¶
Index ¶
- type AppRunner
- func (r *AppRunner) AddBackgroundJob(f RunnerFunc)
- func (r *AppRunner) AddInitContextJob(f SyncRunnerContextFunc)
- func (r *AppRunner) AddInitContextJobs(jobs []SyncRunnerContextFunc)
- func (r *AppRunner) AddInitJob(f SyncRunnerFunc)
- func (r *AppRunner) AddInitJobs(jobs []SyncRunnerFunc)
- func (r *AppRunner) AddJob(f RunnerFunc)
- func (r *AppRunner) AddJobRunNow(f RunnerFunc)
- func (r *AppRunner) AddJobs(jobs []RunnerFunc)
- func (r *AppRunner) RunForever(enableBg bool)
- type RunnerFunc
- type SyncRunnerContextFunc
- type SyncRunnerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppRunner ¶
type AppRunner struct { Logger log.LeveledLogger // contains filtered or unexported fields }
func NewAppRunner ¶
func NewAppRunner(ctx context.Context, logger log.LeveledLogger) *AppRunner
func (*AppRunner) AddBackgroundJob ¶
func (r *AppRunner) AddBackgroundJob(f RunnerFunc)
func (*AppRunner) AddInitContextJob ¶ added in v0.10.1
func (r *AppRunner) AddInitContextJob(f SyncRunnerContextFunc)
func (*AppRunner) AddInitContextJobs ¶ added in v0.10.1
func (r *AppRunner) AddInitContextJobs(jobs []SyncRunnerContextFunc)
func (*AppRunner) AddInitJob ¶
func (r *AppRunner) AddInitJob(f SyncRunnerFunc)
func (*AppRunner) AddInitJobs ¶
func (r *AppRunner) AddInitJobs(jobs []SyncRunnerFunc)
func (*AppRunner) AddJob ¶
func (r *AppRunner) AddJob(f RunnerFunc)
func (*AppRunner) AddJobRunNow ¶ added in v0.3.4
func (r *AppRunner) AddJobRunNow(f RunnerFunc)
func (*AppRunner) AddJobs ¶
func (r *AppRunner) AddJobs(jobs []RunnerFunc)
func (*AppRunner) RunForever ¶
type SyncRunnerContextFunc ¶ added in v0.10.1
type SyncRunnerFunc ¶
type SyncRunnerFunc func() error
Click to show internal directories.
Click to hide internal directories.