service

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2023 License: MIT Imports: 7 Imported by: 4

Documentation

Index

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) 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

func (r *AppRunner) RunForever(enableBg bool)

type RunnerFunc

type RunnerFunc func(context.Context, *sync.WaitGroup) error

type SyncRunnerFunc

type SyncRunnerFunc func() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL