config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: Unlicense Imports: 6 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Path

func Path() (string, error)

func Save

func Save(path string, settings Settings) error

Save atomically replaces the file. Disabling RememberPassword removes both credentials.

Types

type Settings

type Settings struct {
	Username         string `json:"username,omitempty"`
	Password         string `json:"password,omitempty"`
	RememberPassword bool   `json:"remember_password"`
	AutoLogin        bool   `json:"auto_login"`
	SilentStart      bool   `json:"silent_start"`
	Theme            string `json:"theme"`
}

Settings belongs to the desktop app; the client never persists credentials.

func Load

func Load(path string) (Settings, error)

type Startup

type Startup struct {
	AutoStart   bool `json:"auto_start"`
	SilentStart bool `json:"silent_start"`
}

Startup contains the login settings supplied by the Nix module's wrapper.

func NixStartup

func NixStartup() (*Startup, error)

NixStartup returns nil when startup is managed by the application.

Jump to

Keyboard shortcuts

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