Documentation ¶
Index ¶
- Variables
- func Backend(ctx context.Context, opts ...config.Option) (backend types.Backend, err error)
- func WithAddr(addr string) config.Option
- func WithConcurrency(concurrency int) config.Option
- func WithPassword(password string) config.Option
- func WithShutdownTimeout(timeout time.Duration) config.Option
- type MemoryTaskConfigProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidAddr indicates that the provided address is not a valid redis connection string ErrInvalidAddr = errors.New("invalid connecton string: see documentation for valid connection strings") )
Functions ¶
func Backend ¶
Backend is a config.BackendInitializer that initializes a new Redis-backed neoq backend
func WithConcurrency ¶
WithConcurrency configures the number of workers available to process jobs across all queues
func WithPassword ¶
WithPassword configures neoq to connect to Redis with the given password
Types ¶
type MemoryTaskConfigProvider ¶
type MemoryTaskConfigProvider struct {
// contains filtered or unexported fields
}
func NewMemoryTaskConfigProvider ¶
func NewMemoryTaskConfigProvider() (p *MemoryTaskConfigProvider)
NewMemoryTaskConfigProvider returns a new asynq MemoryTaskConfigProvider
func (*MemoryTaskConfigProvider) GetConfigs ¶
func (m *MemoryTaskConfigProvider) GetConfigs() (c []*asynq.PeriodicTaskConfig, err error)
GetConfigs returns this provider's periodic task configurations
Click to show internal directories.
Click to hide internal directories.