Documentation
¶
Index ¶
Constants ¶
View Source
const ( BackendNull = "null" BackendSync = "sync" BackendWorkerpool = "workerpool" BackendSQLite = "sqlite" BackendRedis = "redis" BackendMySQL = "mysql" BackendPostgres = "postgres" BackendNATS = "nats" BackendSQS = "sqs" BackendRabbitMQ = "rabbitmq" )
Variables ¶
View Source
var ExternalBackends = []string{ BackendRedis, BackendMySQL, BackendPostgres, BackendNATS, BackendSQS, BackendRabbitMQ, }
View Source
var LocalBackends = []string{ BackendNull, BackendSync, BackendWorkerpool, BackendSQLite, }
Functions ¶
func BackendEnabled ¶
func PostgresDSN ¶
func SelectedBackends ¶
SelectedBackends returns the enabled backend set for INTEGRATION_BACKEND. When unset or "all", all known backends are enabled.
Types ¶
type Runtime ¶
type Runtime interface {
Driver() queue.Driver
Dispatch(job any) error
DispatchCtx(ctx context.Context, job any) error
Register(jobType string, handler queue.Handler)
StartWorkers(ctx context.Context) error
Shutdown(ctx context.Context) error
}
func NewQueueRuntime ¶
func WithWorkers ¶
Click to show internal directories.
Click to hide internal directories.