Documentation ¶
Index ¶
- type TaskQueueImpl
- func (t *TaskQueueImpl) AddTask(ctx context.Context, q taskqueue.Queue, task *taskqueue.Task) error
- func (t *TaskQueueImpl) IsReady() bool
- func (t *TaskQueueImpl) RegisterTenant(ctx context.Context, tenantId string) error
- func (t *TaskQueueImpl) Subscribe(q taskqueue.Queue) (func() error, <-chan *taskqueue.Task, error)
- type TaskQueueImplOpt
- type TaskQueueImplOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskQueueImpl ¶
type TaskQueueImpl struct {
// contains filtered or unexported fields
}
TaskQueueImpl implements TaskQueue interface using AMQP.
func New ¶
func New(fs ...TaskQueueImplOpt) (func() error, *TaskQueueImpl)
New creates a new TaskQueueImpl.
func (*TaskQueueImpl) IsReady ¶ added in v0.13.0
func (t *TaskQueueImpl) IsReady() bool
func (*TaskQueueImpl) RegisterTenant ¶ added in v0.9.0
func (t *TaskQueueImpl) RegisterTenant(ctx context.Context, tenantId string) error
type TaskQueueImplOpt ¶
type TaskQueueImplOpt func(*TaskQueueImplOpts)
func WithLogger ¶
func WithLogger(l *zerolog.Logger) TaskQueueImplOpt
func WithURL ¶
func WithURL(url string) TaskQueueImplOpt
type TaskQueueImplOpts ¶
type TaskQueueImplOpts struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.