internal

package
v0.0.0-...-1dedb3c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailAck

func FailAck(value string) error

func Pop

func Pop() []string

func Push

func Push(ctx context.Context, topic string, data any, delayDuration time.Duration) error

func SetUp

func SetUp(redis *redis.Redis, batchSize int, prefix string)

func SuccessAck

func SuccessAck(value string) error

Types

type DelayData

type DelayData struct {
	Ctx       any
	Topic     string `json:"topic"`
	Data      any    `json:"data"`
	Attempts  int    `json:"attempts"`
	Timestamp int64  `json:"timestamp"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳