configs

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogConfig

type LogConfig struct {
	Level     string `mapstructure:"level"`
	TimeZone  string `mapstructure:"timeZone"`
	LogName   string `mapstructure:"log_name"`
	LogSuffix string `mapstructure:"log_suffix"`
	MaxBackup int    `mapstructure:"max_backup"`
}

type ServerConfig

type ServerConfig struct {
	System    System    `mapstructure:"system"`
	LogConfig LogConfig `mapstructure:"log"`
}

type System

type System struct {
	Port       string `mapstructure:"port"`
	SSL        string `mapstructure:"ssl"`
	DbFile     string `mapstructure:"db_file"`
	DbPath     string `mapstructure:"db_path"`
	LogPath    string `mapstructure:"log_path"`
	DataDir    string `mapstructure:"data_dir"`
	TmpDir     string `mapstructure:"tmp_dir"`
	Cache      string `mapstructure:"cache"`
	Backup     string `mapstructure:"backup"`
	EncryptKey string `mapstructure:"encrypt_key"`
	BaseDir    string `mapstructure:"base_dir"`
	Mode       string `mapstructure:"mode"`
	RepoUrl    string `mapstructure:"repo_url"`
	Version    string `mapstructure:"version"`
	Username   string `mapstructure:"username"`
	Password   string `mapstructure:"password"`
	Entrance   string `mapstructure:"entrance"`
	IsDemo     bool   `mapstructure:"is_demo"`
}

Jump to

Keyboard shortcuts

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