loader

package
v0.0.0-...-b8189d2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNext = errors.New("next error")
View Source
var ErrNoResult = errors.New("no result")

Functions

This section is empty.

Types

type ChainFunc

type ChainFunc[T any] []Func[T]

func (ChainFunc[T]) Load

func (c ChainFunc[T]) Load(ctx context.Context, key string) (T, error)

type Func

type Func[T any] func(ctx context.Context, key string) (T, error)

func SingleFlightLoader

func SingleFlightLoader[T any](key string, f Func[T]) Func[T]

Jump to

Keyboard shortcuts

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