Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobFn ¶
func KeyRotateJob ¶
func KeyRotateJob() JobFn
func OutboxSendingJob ¶
func OutboxSendingJob(dp *ioc.DependencyProvider) JobFn
type JobManager ¶
type JobManager interface {
QueueJob(JobFn, time.Duration, ...JobOption)
Start(context.Context)
Stop()
}
func NewJobManager ¶
func NewJobManager(opts ...ManagerOption) JobManager
type JobOption ¶
type JobOption func(*job)
func WithStartImmediate ¶
func WithStartImmediate() JobOption
func WithTimeout ¶
type ManagerOption ¶
type ManagerOption func(*jobManager)
func WithOnError ¶
func WithOnError(onError func(error)) ManagerOption
Click to show internal directories.
Click to hide internal directories.