Documentation
¶
Index ¶
- Constants
- Variables
- func BackendEnabled(envValue, name string) bool
- func MySQLDSN(addr string) string
- func NewQueue(cfg any, opts ...queue.Option) (*queue.Queue, error)
- func Pause(ctx context.Context, v any, queueName string) error
- func PostgresDSN(addr string) string
- func Ready(ctx context.Context, v any) error
- func Resume(ctx context.Context, v any, queueName string) error
- func SelectedBackends(envValue string) map[string]bool
- func Snapshot(ctx context.Context, v any, collector *queue.StatsCollector) (queue.StatsSnapshot, error)
- func SupportsNativeStats(v any) bool
- func SupportsPause(v any) bool
- type Runtime
Constants ¶
View Source
const ( BackendNull = "null" BackendSync = "sync" BackendWorkerpool = "workerpool" BackendSQLite = "sqlite" BackendRedis = "redis" BackendMySQL = "mysql" BackendPostgres = "postgres" BackendNATS = "nats" BackendSQS = "sqs" BackendRabbitMQ = "rabbitmq" BackendTemporal = "temporal" )
View Source
const TemporalServerImage = "temporalio/temporal@sha256:2c344b4a39b4489fc6944db095f628f0c30659836faf11780a4dc435599e80e3"
TemporalServerImage pins the qualified CLI/server image for proofs and public-driver acceptance.
Variables ¶
View Source
var ExternalBackends = []string{ BackendTemporal, 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.
func Snapshot ¶ added in v0.1.12
func Snapshot(ctx context.Context, v any, collector *queue.StatsCollector) (queue.StatsSnapshot, error)
func SupportsNativeStats ¶ added in v0.1.12
func SupportsPause ¶ added in v0.1.12
Types ¶
Click to show internal directories.
Click to hide internal directories.