config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Subsonic struct {
		BaseUrl  string `koanf:"base_url"`
		User     string `koanf:"user"`
		Password string `koanf:"password"` // won't actually be saved using koanf, but using go-keyring instead
	} `koanf:"subsonic"`
	WindowDecorations WindowDecorationsMode `koanf:"window_decorations"`
}
var Cfg Config

func (Config) Save

func (cfg Config) Save()

func (Config) ShouldUseCSD

func (cfg Config) ShouldUseCSD() bool

type WindowDecorationsMode

type WindowDecorationsMode int
const (
	WindowDecorationsAuto WindowDecorationsMode = iota // decide which mode to use based on environment
	WindowDecorationsCSD                               // always use client-side decorations
	WindowDecorationsSSD                               // always use server-side decorations
)

Jump to

Keyboard shortcuts

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