config

package
v0.0.0-...-57d6a8b Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: MIT 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 {
	WebListenAddr string `toml:"web_listen_addr"`

	PasswordRead  string `toml:"password_read"`
	PasswordWrite string `toml:"password_write"`

	Secred string `toml:"secred"`
}

Config holds all settings to start the server

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns a config object with default values.

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