files

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSingleton

type FileSingleton[T any] struct {
	krt.Singleton[T]
}

func NewFileSingleton

func NewFileSingleton[T any](
	fileWatcher filewatcher.FileWatcher,
	filename string,
	readFile func(filename string) (T, error),
	opts ...krt.CollectionOption,
) (FileSingleton[T], error)

Jump to

Keyboard shortcuts

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