config

package
v0.1.0-a Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(configPath string)

Types

type Config

type Config struct {
	Database struct {
		Path string `yaml:"path"`
	} `yaml:"database"`
	Admin struct {
		DefaultUsername string `yaml:"default_username"`
		DefaultPassword string `yaml:"default_password"`
	} `yaml:"admin"`
	Server struct {
		Port int `yaml:"port"`
	} `yaml:"server"`
	Session struct {
		SecretKey string `yaml:"secret_key"`
	} `yaml:"session"`
}
var AppConfig Config

Jump to

Keyboard shortcuts

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