msgqueue

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChanMQ

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

func NewChanMQ

func NewChanMQ(capacity int, deviceId string) *ChanMQ

func (*ChanMQ) Clear

func (q *ChanMQ) Clear() error

func (*ChanMQ) Deq

func (q *ChanMQ) Deq(ctx context.Context) ([]byte, error)

func (*ChanMQ) Destroy

func (q *ChanMQ) Destroy()

func (*ChanMQ) Enq

func (q *ChanMQ) Enq(msg []byte) error

func (*ChanMQ) IsLive

func (q *ChanMQ) IsLive() bool

func (*ChanMQ) Len

func (q *ChanMQ) Len() int

func (*ChanMQ) Renew

func (q *ChanMQ) Renew()

type MessageQueueInterface

type MessageQueueInterface interface {
	Enq(msg []byte) error
	Deq(ctx context.Context) ([]byte, error)
	Len() int
	Clear() error
	IsLive() bool
	Renew()
	Destroy()
}

Jump to

Keyboard shortcuts

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