selector

package
v0.0.0-...-26ed3c2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 3 Imported by: 4

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