redisadmin

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPageSize = 10

Variables

This section is empty.

Functions

func AtoiDefault

func AtoiDefault(s string, def int) int

func ClampPage

func ClampPage(p int) int

func ClearQueues

func ClearQueues(queues ...string) error

func DeleteItem

func DeleteItem(queue, raw string) error

func EmailTasks

func EmailTasks(queue string, page, pageSize int) ([]redis.EmailTask, error)

func ErrorRecords

func ErrorRecords(page, pageSize int) ([]redis.EmailErrorRecord, error)

func Inspect

func Inspect(queue string, limit int64) ([]string, error)

func ListLen

func ListLen(queue string) (int64, error)

func LogLen

func LogLen(name string) (int64, error)

func MoveItem

func MoveItem(from, to, raw string) error

func Pattern

func Pattern(prefixless string) string

func ResendTask

func ResendTask(rawTask string) error

func RetryTasks

func RetryTasks(page, pageSize int) ([]redis.EmailTask, error)

func RunOne

func RunOne(send func(redis.EmailTask) error) (bool, error)

func SentRecords

func SentRecords(page, pageSize int) ([]redis.EmailSentRecord, error)

func SetLen

func SetLen(queue string) (int64, error)

Types

type KeySummary

type KeySummary struct {
	Name string
	Type string
	Size int64
}

func KeysPage

func KeysPage(pattern string, page, pageSize int) ([]KeySummary, int, error)

func ScanKeys

func ScanKeys(pattern string, startCursor uint64, want int) ([]KeySummary, uint64, error)

func Summary

func Summary(key string) KeySummary

type Pager

type Pager struct {
	Total int64
	Page  int
	Pages int
	Prev  int
	Next  int
}

func NewPager

func NewPager(total int64, page, pageSize int) Pager

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL