Documentation ¶
Index ¶
- func Backend(ctx context.Context, opts ...config.Option) (backend types.Backend, err error)
- type MemBackend
- func (m *MemBackend) Enqueue(ctx context.Context, job *jobs.Job) (jobID string, err error)
- func (m *MemBackend) SetLogger(logger logging.Logger)
- func (m *MemBackend) Shutdown(ctx context.Context)
- func (m *MemBackend) Start(ctx context.Context, queue string, h handler.Handler) (err error)
- func (m *MemBackend) StartCron(ctx context.Context, cronSpec string, h handler.Handler) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MemBackend ¶
MemBackend is a memory-backed neoq backend
func (*MemBackend) SetLogger ¶
func (m *MemBackend) SetLogger(logger logging.Logger)
SetLogger sets this backend's logger
func (*MemBackend) Shutdown ¶
func (m *MemBackend) Shutdown(ctx context.Context)
Shutdown halts the worker
func (*MemBackend) StartCron ¶
StartCron starts processing jobs with the specified cron schedule and handler
See: https://pkg.go.dev/github.com/robfig/cron?#hdr-CRON_Expression_Format for details on the cron spec format
Click to show internal directories.
Click to hide internal directories.