selector

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 3 Imported by: 27

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter[T any] interface {
	Filter(context.Context, ...T) []T
}

type Markable

type Markable interface {
	Marker() Marker
}

type Marker

type Marker interface {
	Time() time.Time
	Count() int64
	Mark()
	Reset()
}

func NewFailMarker

func NewFailMarker() Marker

type Selector

type Selector[T any] interface {
	Select(context.Context, ...T) T
}

type Strategy

type Strategy[T any] interface {
	Apply(context.Context, ...T) T
}

Jump to

Keyboard shortcuts

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