Documentation ¶
Index ¶
- Variables
- func NewRdb(host, port string, password string, database, maxRetries int, ...) redis.UniversalClient
- func NewReadGroupArgs(group, consumer string, streams []string, count int64, block time.Duration) *redis.XReadGroupArgs
- func NewZAddArgs(stream, minId, Id string, maxLen, Limit int64, vals any) *redis.XAddArgs
- type Base
- func (t *Base) Consumer(ctx context.Context, stream *public.Stream, handler public.CallBack) error
- func (t *Base) DeadLetter(ctx context.Context, channel, topic string)
- func (t *Base) Dequeue(ctx context.Context, channel, topic string, do public.CallBack)
- func (t *Base) Enqueue(ctx context.Context, data map[string]any) error
- type BlockDuration
- type Log
- type Normal
- type PreWork
- type ProcessLog
- type RdbBroker
- type Schedule
- func (t *Schedule) Dequeue(ctx context.Context, channel, topic string, do public.CallBack)
- func (t *Schedule) Enqueue(ctx context.Context, data map[string]any) error
- func (t *Schedule) PreWork(ctx context.Context, prefix string, channel, topic string)
- func (t *Schedule) Watcher(ctx context.Context, zsetMax string, zsetKey, streamKey string) func(tx *redis.Tx) error
- type Sequential
- type Status
- type UITool
- type Watcher
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HashDuplicateIdScript = redis.NewScript(hashDuplicateIdLua) AddLogicLockScript = redis.NewScript(addLogicLockLua) SaveHSetScript = redis.NewScript(saveHsetLua) )
Functions ¶
func NewReadGroupArgs ¶
func NewZAddArgs ¶
Types ¶
type Base ¶
type Base struct { public.IProcessLog // contains filtered or unexported fields }
type BlockDuration ¶
type Normal ¶
type Normal struct {
// contains filtered or unexported fields
}
type ProcessLog ¶
type ProcessLog struct {
// contains filtered or unexported fields
}
func NewProcessLog ¶
func NewProcessLog(client redis.UniversalClient, prefix string) *ProcessLog
type RdbBroker ¶
type RdbBroker struct {
// contains filtered or unexported fields
}
type Schedule ¶
type Schedule struct {
// contains filtered or unexported fields
}
func NewSchedule ¶
type Sequential ¶
type Sequential struct {
// contains filtered or unexported fields
}
func NewSequential ¶
func NewSequential(client redis.UniversalClient, prefix string, consumerCount int64, deadLetterIdle time.Duration) *Sequential
Click to show internal directories.
Click to hide internal directories.