cache

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Snapshot

type Snapshot struct {
	SourcePath string    `json:"source_path"`
	Path       string    `json:"path"`
	SizeBytes  int64     `json:"size_bytes"`
	CreatedAt  time.Time `json:"created_at"`
}

func SnapshotFile

func SnapshotFile(opts SnapshotOptions) (Snapshot, error)

type SnapshotOptions

type SnapshotOptions struct {
	SourcePath   string
	CacheDir     string
	Name         string
	MaxFileBytes int64
	Now          func() time.Time
}

Jump to

Keyboard shortcuts

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