matching

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 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 Item

type Item struct {
	Item      any
	Timestamp time.Time
}

type Matcher

type Matcher func(a, b any) bool

type Queue

type Queue struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue(maxLen int, matchingFunc Matcher, removeMatched bool) *Queue

func (*Queue) AddFirst

func (q *Queue) AddFirst(data any, t time.Time) []Item

func (*Queue) AddSecond

func (q *Queue) AddSecond(data any, t time.Time) []Item

Jump to

Keyboard shortcuts

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