Documentation ¶
Index ¶
- type DeadQueueInfo
- type HandleFunc
- type IQueue
- type QueueInfo
- type QueueRunner
- func (qr *QueueRunner) CleanDead(ctx context.Context, stream, group string, start, batchSize int64) error
- func (qr *QueueRunner) Close() error
- func (qr *QueueRunner) HandleDead(ctx context.Context, handler HandleFunc, stream, group string, ids ...string) []error
- func (qr *QueueRunner) PageDead(ctx context.Context, stream, group string, cursor uint64, count int64) ([]string, uint64, error)
- func (qr *QueueRunner) Run(userQueues ...IQueue) error
- func (qr *QueueRunner) RunTrim(trimInfos ...*TrimInfo) error
- func (qr *QueueRunner) Send(ctx context.Context, stream, val string) (string, error)
- func (qr *QueueRunner) SendWithKey(ctx context.Context, stream, key, val string) (string, error)
- type RetryQueueInfo
- type TrimInfo
- type UserQueueInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeadQueueInfo ¶
type DeadQueueInfo struct {
Stop bool
}
type HandleFunc ¶
type QueueInfo ¶
type QueueInfo struct { UserQueueInfo *UserQueueInfo RetryQueueInfo *RetryQueueInfo DeadQueueInfo *DeadQueueInfo NotifyErr func(stream, key string, err error) NotifyPanic func(pnc any, stack string) // contains filtered or unexported fields }
type QueueRunner ¶
type QueueRunner struct {
// contains filtered or unexported fields
}
func NewQueueRunner ¶
func NewQueueRunner(redisClient *redis.Client) *QueueRunner
func (*QueueRunner) Close ¶
func (qr *QueueRunner) Close() error
func (*QueueRunner) HandleDead ¶
func (qr *QueueRunner) HandleDead(ctx context.Context, handler HandleFunc, stream, group string, ids ...string) []error
func (*QueueRunner) Run ¶
func (qr *QueueRunner) Run(userQueues ...IQueue) error
func (*QueueRunner) RunTrim ¶ added in v0.2.2
func (qr *QueueRunner) RunTrim(trimInfos ...*TrimInfo) error
func (*QueueRunner) SendWithKey ¶
type RetryQueueInfo ¶
Click to show internal directories.
Click to hide internal directories.