selector

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 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