selector

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 3 Imported by: 6

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