cache

package
v1.0.2-stable Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ConfigPath      = "advancedCache.cfg.yaml"
	ConfigPathLocal = "advancedCache.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.Cache, probe liveness.Prober) (*Cache, error)

NewApp builds a new Cache app.

func (*Cache) IsAlive

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

func (*Cache) LoadData added in v1.0.3

func (c *Cache) LoadData(ctx context.Context, interactive bool) error

func (*Cache) Start

func (c *Cache) Start(gc shutdown.Gracefuller)

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