lossylifoqueue

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LossyLifoQueue

type LossyLifoQueue struct {
	Data    *list.List
	MaxSize int
	// contains filtered or unexported fields
}

func NewLossyLifoQueue

func NewLossyLifoQueue(maxSize int, comparator func(interface{}, interface{}) bool) *LossyLifoQueue

func (*LossyLifoQueue) Add

func (llq *LossyLifoQueue) Add(item interface{})

func (*LossyLifoQueue) GetAll added in v0.1.15

func (llq *LossyLifoQueue) GetAll() []interface{}

func (*LossyLifoQueue) MarshalJSON added in v0.1.12

func (llq *LossyLifoQueue) MarshalJSON() ([]byte, error)

func (*LossyLifoQueue) Peek

func (llq *LossyLifoQueue) Peek() interface{}

func (*LossyLifoQueue) Pop

func (llq *LossyLifoQueue) Pop() interface{}

func (*LossyLifoQueue) String

func (llq *LossyLifoQueue) String() string

func (*LossyLifoQueue) UnmarshalJSON added in v0.1.12

func (llq *LossyLifoQueue) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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