Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { // Enqueue queues jobs to be executed asynchronously Enqueue(ctx context.Context, job *jobs.Job) (jobID int64, err error) // Start starts processing jobs with the specified queue and handler Start(ctx context.Context, queue string, h handler.Handler) (err error) // 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 StartCron(ctx context.Context, cron string, h handler.Handler) (err error) // SetLogger sets the backend logger SetLogger(logger logging.Logger) // Shutdown halts job processing and releases resources Shutdown(ctx context.Context) }
Backend interface is Neoq's primary API
Backend is implemented by:
Click to show internal directories.
Click to hide internal directories.