pending

package
v0.0.0-...-80ab217 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package pending implements storage for pending messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

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

List of pending messages

func (*List) Add

func (p *List) Add(id uint16, pkt packet.ControlPacket) (added bool)

Add a pending packet to the end of the list

func (*List) Clear

func (p *List) Clear()

Clear the list

func (*List) Get

func (p *List) Get() []packet.ControlPacket

Get all pending packets

func (*List) Len

func (p *List) Len() (l int)

Len returns the length of the list.

func (*List) Remove

func (p *List) Remove(id uint16) (removed bool)

Remove a pending packet, guessing it is in the beginning of the list

Jump to

Keyboard shortcuts

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