cmd

package
v0.0.0-...-3951416 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitByMultiple

func SplitByMultiple(str string) []string

func StartFilebrowser

func StartFilebrowser()

Types

type Auth

type Auth struct {
	AdminUsername string `yaml:"adminUsername"`
	AdminPassword string `yaml:"adminPassword"`
}

type Frontend

type Frontend struct {
	Name string `yaml:"name,omitempty"`
}

Frontend defines settings related to the web interface.

type LogConfig

type LogConfig struct {
	Levels    string `json:"levels"`    // separated list of log levels to enable. (eg. "info|warning|error|debug")
	ApiLevels string `json:"apiLevels"` // separated list of log levels to enable for the API. (eg. "info|warning|error")
	Output    string `json:"output"`    // output location. (eg. "stdout" or "path/to/file.log")
	NoColors  bool   `json:"noColors"`  // disable colors in the output
	Utc       bool   `json:"utc"`       // use UTC time in the output instead of local time
}

type Server

type Server struct {
	Port     int         `yaml:"port"`
	Database string      `yaml:"database"`
	Sources  []Source    `yaml:"sources"`
	Logging  []LogConfig `json:"logging"`
}

Server defines server-specific configurations.

type Settings

type Settings struct {
	Server       Server       `yaml:"server"`
	Frontend     Frontend     `yaml:"frontend,omitempty"`
	Auth         Auth         `yaml:"auth"`
	UserDefaults UserDefaults `yaml:"userDefaults"`
}

Settings is the top-level configuration structure.

type Source

type Source struct {
	Name string `yaml:"name,omitempty"`
	Path string `yaml:"path"`
}

Source defines a directory to be served.

type UserDefaults

type UserDefaults struct {
	Permissions users.Permissions `yaml:"permissions"`
}

UserDefaults defines default settings for new users.

Jump to

Keyboard shortcuts

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