config

package
v0.0.0-...-3759839 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: AGPL-3.0-or-later Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemaVersion                      = 1
	DefaultPath                        = "/etc/gohome/config.pbtxt"
	DefaultGRPCAddr                    = "0.0.0.0:9000"
	DefaultHTTPAddr                    = "0.0.0.0:8080"
	DefaultDashboardDir                = "/var/lib/gohome/dashboards"
	DefaultOAuthPrefix                 = "gohome/oauth"
	DefaultOAuthRefreshIntervalSeconds = 600
)

Variables

This section is empty.

Functions

func BootstrapPathForProvider

func BootstrapPathForProvider(cfg *configv1.Config, provider string) (string, error)

BootstrapPathForProvider resolves the bootstrap file path from config.

func EnabledPlugins

func EnabledPlugins(cfg *configv1.Config) map[string]bool

EnabledPlugins maps enabled plugin IDs based on config presence.

func Load

func Load(path string) (*configv1.Config, error)

Load parses the textproto config file, applies defaults, and validates.

func Validate

func Validate(cfg *configv1.Config) error

Validate enforces required invariants beyond proto typing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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