config

package
v1.2205.0-pre3 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Functions

This section is empty.

Types

type Config

type Config struct {
	Server Server `yaml:"server"`
}

type DatabaseConfig

type DatabaseConfig struct {
	MysqlCnf MysqlConfig `yaml:"mysql_cnf"`
}

type MysqlConfig

type MysqlConfig struct {
	Host           string `yaml:"mysql_host"`
	Port           string `yaml:"mysql_port"`
	User           string `yaml:"mysql_user"`
	Password       string `yaml:"mysql_password,omitempty"`
	SecretPassword string `yaml:"secret_mysql_password,omitempty"`
	Schema         string `yaml:"mysql_schema"`
}

type Server

type Server struct {
	SqleCnf SqleConfig     `yaml:"sqle_config"`
	DBCnf   DatabaseConfig `yaml:"db_config"`
}

type SqleConfig

type SqleConfig struct {
	SqleServerPort   int    `yaml:"server_port"`
	EnableHttps      bool   `yaml:"enable_https"`
	CertFilePath     string `yaml:"cert_file_path"`
	KeyFilePath      string `yaml:"key_file_path"`
	AutoMigrateTable bool   `yaml:"auto_migrate_table"`
	DebugLog         bool   `yaml:"debug_log"`
	LogPath          string `yaml:"log_path"`
	PluginPath       string `yaml:"plugin_path"`
	SecretKey        string `yaml:"secret_key"`
}

Jump to

Keyboard shortcuts

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