config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName    = "dragondoat"
	AppVersion = "0.0.1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	System struct {
		DebugMode          bool   `yaml:"debug_mode,omitempty"`
		ServerAddr         string `yaml:"server_address,omitempty"`
		EnableCORS         bool   `yaml:"enable_cors,omitempty"`
		EnableAuth         bool   `yaml:"enable_auth,omitempty"`
		ExternalSvrAddress string `yaml:"external_svr_address,omitempty"`
		TrustedProxies     string `yaml:"trusted_proxies,omitempty"`
	} `yaml:"system"`

	Database struct {
		Type     string `yaml:"dbtype,omitempty"`
		Host     string `yaml:"dbhost,omitempty"`
		Port     int    `yaml:"dbport,omitempty"`
		Database string `yaml:"dbname,omitempty"`
		User     string `yaml:"dbuser,omitempty"`
		Password string `yaml:"dbpassword,omitempty"`
	} `yaml:"database"`
}

Jump to

Keyboard shortcuts

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