redis

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	MaxQueuedMsg    int
	ClientID        string
	InflightExpiry  time.Duration
	Pool            *redigo.Pool
	DefaultNotifier queue.Notifier
}

type Queue

type Queue struct {
	// contains filtered or unexported fields
}

func New

func New(opts Options) (*Queue, error)

func (*Queue) Add

func (q *Queue) Add(elem *queue.Elem) (err error)

func (*Queue) Clean

func (q *Queue) Clean() error

func (*Queue) Close

func (q *Queue) Close() error

func (*Queue) Init

func (q *Queue) Init(opts *queue.InitOptions) error

func (*Queue) Read

func (q *Queue) Read(pids []packets.PacketID) (elems []*queue.Elem, err error)

func (*Queue) ReadInflight

func (q *Queue) ReadInflight(maxSize uint) (elems []*queue.Elem, err error)

func (*Queue) Remove

func (q *Queue) Remove(pid packets.PacketID) error

func (*Queue) Replace

func (q *Queue) Replace(elem *queue.Elem) (replaced bool, err error)

Jump to

Keyboard shortcuts

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