config

package
v0.0.0-...-1c9237d Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePassword

func CreatePassword(length int) string

CreatePassword creates a random password string.

Types

type Config

type Config struct {
	WebListenAddr string `toml:"web_listen_addr"`
	AdminToken    string `toml:"admin_token"`
	Secred        string `toml:"secred"`
	BaseURL       string `toml:"base_url"`
}

Config holds all settings to start the server

func LoadConfig

func LoadConfig(file string) (Config, error)

LoadConfig loads the config from a toml file.

Jump to

Keyboard shortcuts

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