fifo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

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