cachectl

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Version   = "0.3.11"
	Cachectl  = "cachectl"
	Cachectld = "cachectld"
)

Variables

This section is empty.

Functions

func LoadConf

func LoadConf(confPath string, confToml *ConfToml) error

func PrintPagesStat

func PrintPagesStat(fpath string, fsize int64)

func PrintVersion

func PrintVersion(name string)

func RunPurgePages

func RunPurgePages(path string, fsize int64, rate float64, verbose bool) error

func ValidateConf

func ValidateConf(confToml *ConfToml) error

func WalkPrintPagesStat added in v0.1.1

func WalkPrintPagesStat(path string, re *regexp.Regexp) error

func WalkPurgePages added in v0.1.1

func WalkPurgePages(path string, re *regexp.Regexp, rate float64, verbose bool) error

Types

type ConfToml

type ConfToml struct {
	Targets []SectionTarget `toml:"targets"`
}

type SectionTarget

type SectionTarget struct {
	Path          string  `toml:"path"`
	PurgeInterval int     `toml:"purge_interval"`
	Filter        string  `toml:"filter"`
	Rate          float64 `toml:"rate"`
}

Jump to

Keyboard shortcuts

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