selector

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 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 IFilter

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

type IMarkable

type IMarkable interface {
	Marker() IMarker
}

type IMarker

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

func NewFailMarker

func NewFailMarker() IMarker

type ISelector

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

type IStrategy

type IStrategy[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