fifo

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: MIT Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config config.Config, maxAlias uint16, clientID string) server.TopicAliasManager

New is the constructor of Queue.

Types

type Queue

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

Queue is the fifo queue which store all topic alias for one client

func (*Queue) Check

func (q *Queue) Check(publish *packets.Publish) (alias uint16, exist bool)

Jump to

Keyboard shortcuts

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