cache

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultJsonFileName = "cache.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	GetLastExecutionAt() int64
	GetCachedTasks() []CachedTask
	Read() error
	SetLastExecutionAt(at int64)
	UpdateCachedTasks(tasks []task.Task)
	Write() error
}

func NewJsonFile

func NewJsonFile(file string) Cache

type CachedTask

type CachedTask struct {
	Checksum string
	Name     string
}

Jump to

Keyboard shortcuts

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