watch

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File[T any] struct {
	// contains filtered or unexported fields
}

func NewFile

func NewFile[T any](logger *zap.Logger, path string, load func(path string) (T, error)) (*File[T], error)

func (*File[T]) Close

func (f *File[T]) Close()

func (*File[T]) Get

func (f *File[T]) Get(ctx context.Context) (value T, err error)

Jump to

Keyboard shortcuts

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