config

package
v0.0.0-...-99d1478 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: AGPL-3.0 Imports: 6 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 {
	Address *netip.AddrPort `toml:"address"`

	Host string `toml:"host"`

	Sessions struct {
		PublicKey  string `toml:"public_key"`
		PrivateKey string `toml:"private_key"`
	} `toml:"sessions"`

	Database struct {
		Type string `toml:"type"`
		DSN  string `toml:"dsn"`
	} `toml:"database"`

	Scheduler struct {
		Workers int `toml:"workers"`
	} `toml:"scheduler"`

	Files struct {
		Type string `toml:"type"`
		Path string `toml:"path"`
	} `toml:"files"`

	DisableWebUI  bool `toml:"disable_web_ui"`
	DisableWebAPI bool `toml:"disable_web_api"`
}

func FromFile

func FromFile(path string) (*Config, error)

func (*Config) IsValid

func (config *Config) IsValid() bool

Jump to

Keyboard shortcuts

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