paths

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package paths decides where Anyserve keeps its files on each OS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dirs

type Dirs struct {
	// Config holds settings such as the registry list.
	Config string
	// Data holds instances, backups and tools like SteamCMD.
	Data string
	// Cache holds registry indexes and downloads that can be refetched.
	Cache string
}

Dirs are Anyserve's working directories.

func Default

func Default() (Dirs, error)

Default returns the per-user directories for this OS. Setting ANYSERVE_HOME puts everything under one directory instead, which tests and portable installs use.

func (Dirs) Backups

func (d Dirs) Backups() string

Backups is where backups are written unless an instance overrides it.

func (Dirs) Downloads

func (d Dirs) Downloads() string

Downloads caches downloaded archives by checksum.

func (Dirs) Instances

func (d Dirs) Instances() string

Instances is where each instance gets its own directory.

func (Dirs) Registries

func (d Dirs) Registries() string

Registries is the verified registry index cache.

func (Dirs) Tools

func (d Dirs) Tools() string

Tools is where Anyserve installs helpers such as SteamCMD.

Jump to

Keyboard shortcuts

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