config

package
v0.0.0-...-4584b12 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupDataPath

func SetupDataPath() error

Types

type Admin

type Admin struct {
	Username string `json:"username"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

type Config

type Config struct {
	Environment   string  `json:"environment"`
	Port          int     `json:"port"`
	DatabaseURL   string  `json:"database_url"`
	LogLevel      string  `json:"log_level"`
	SessionSecret string  `json:"session_secret"`
	Admins        []Admin `json:"admins"`
	DataPath      string  `json:"data_path"`
}
var ParsedConfig *Config

func ParseConfig

func ParseConfig(path string) *Config

Jump to

Keyboard shortcuts

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