queue

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Add

type Add struct {
	Shard uint32
}

func NewAdd

func NewAdd(shard uint32) *Add

func (*Add) Add

func (a *Add) Add(items []Item) error

type Get

type Get struct {
	Shard uint32
	Items []Item
}

func NewGet

func NewGet(shard uint32) *Get

func (*Get) GetAndWait

func (r *Get) GetAndWait(topic string, start []byte) error

func (*Get) GetByPrefixes

func (r *Get) GetByPrefixes(topic string, prefixes [][]byte) error

type Item

type Item struct {
	Topic string
	Uid   []byte
	Data  []byte
}

Jump to

Keyboard shortcuts

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