queue

package
v0.0.0-...-e7ea114 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer struct {
	ConsumerId string
	// contains filtered or unexported fields
}

type Message

type Message struct {
	Offset int64
	Data   interface{}
	// contains filtered or unexported fields
}

type Queue

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

func New

func New() *Queue

func (*Queue) Close

func (q *Queue) Close()

func (*Queue) Peak

func (q *Queue) Peak(consumerId string) (*Message, error)

func (*Queue) Push

func (q *Queue) Push(data interface{}, expire time.Duration) error

func (*Queue) Register

func (q *Queue) Register(consumerId string) *Consumer

Jump to

Keyboard shortcuts

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