cache

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigPath      = "advCache.cfg.yaml"
	ConfigPathLocal = "advCache.cfg.local.yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	Start(gc shutdown.Gracefuller)
	// contains filtered or unexported methods
}

App defines the cache application lifecycle interface.

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

Cache encapsulates the entire cache application state.

func NewApp

func NewApp(ctx context.Context, cfg config.Config, probe liveness.Prober, isInteractive bool) (cache *Cache, err error)

NewApp builds a new Cache app.

func (*Cache) IsAlive

func (c *Cache) IsAlive(_ context.Context) bool

func (*Cache) Start

func (c *Cache) Start(gsh shutdown.Gracefuller) error

Start runs the cache server and probes, handles shutdown.

type Version added in v1.0.3

type Version struct {
	Name    string
	Size    int64
	ModTime time.Time
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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