cache

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cache = &cache{}

Functions

func Delete

func Delete(files ...pkg.File)

func Find added in v0.5.1

func Find[F pkg.File](parentId, name string, loader func() ([]F, error)) (pkg.File, error)

func Invalid added in v0.5.1

func Invalid(files ...pkg.File)

func InvalidId added in v0.5.1

func InvalidId(id string)

func List

func List[F pkg.File](parentId string, loader func() ([]F, error)) ([]pkg.File, error)

Types

type DirEntry

type DirEntry struct {
	Info pkg.File
	// contains filtered or unexported fields
}

func (*DirEntry) Files

func (e *DirEntry) Files() []pkg.File

func (*DirEntry) Load added in v0.5.1

func (e *DirEntry) Load(name string) (pkg.File, error)

type Latest added in v0.5.1

type Latest func(id string) pkg.File

Jump to

Keyboard shortcuts

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