service

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PruneFreeSpaceRequired uint64 = 50 * 1024 * 1024 * 1024
)

Settings

Variables

This section is empty.

Functions

func RegisterCommands

func RegisterCommands(app *cli.App, name string, aliases []string)

Register commands

func SyncRatioToPercent

func SyncRatioToPercent(in float64) float64

When printing sync percents, we should avoid printing 100%. This function is only called if we're still syncing, and the `%0.2f` token will round up if we're above 99.99%.

Types

type StartMode added in v1.2.0

type StartMode int
const (
	// Start normally, with an update prompt if relevant
	StartMode_Normal StartMode = iota

	// Start without performing an update
	StartMode_NoUpdate

	// Start with forcing an automatic update if relevant
	StartMode_ForceUpdate
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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