config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 2 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 config resolves where maild keeps its files (docs/design/overview.md#configuration).

Index

Constants

View Source
const AppID = "org.frostyard.Frostmail"

AppID is the reverse-DNS application ID (frostyard/core ADR-0016).

Variables

This section is empty.

Functions

func DefaultSocket

func DefaultSocket(getenv func(string) string) (string, error)

DefaultSocket is maild's socket when FROSTMAIL_SOCKET is not set: $XDG_RUNTIME_DIR/frostmail/maild.sock.

Types

type Paths

type Paths struct {
	DataDir  string // database and blob store; must be on a local filesystem
	CacheDir string // decoded message parts served to the UI
	Socket   string // the RPC socket (a named pipe on Windows)
	DB       string // DataDir/frostmail.db
	Blobs    string // DataDir/blobs
}

Paths are maild's file locations.

func Resolve

func Resolve(getenv func(string) string) (Paths, error)

Resolve computes Paths from the environment: the XDG base directories on Linux, the user's local app data and a per-user named pipe on Windows (ADR-0038). FROSTMAIL_DATA_DIR, FROSTMAIL_CACHE_DIR and FROSTMAIL_SOCKET override the defaults, for tests and for running a second maild.

Jump to

Keyboard shortcuts

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