config

package
v1.2210.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const LoginUserNameKey = "login_user_name"

在登录校验通过后, Login接口会将登陆成功的用户名写入echo.Context

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 SQLQueryConfig added in v1.2209.0

type SQLQueryConfig struct {
	EnableHttps              bool   `yaml:"enable_https"`
	CloudBeaverHost          string `yaml:"cloud_beaver_host"`
	CloudBeaverPort          string `yaml:"cloud_beaver_port"`
	CloudBeaverAdminUser     string `yaml:"cloud_beaver_admin_user"`
	CloudBeaverAdminPassword string `yaml:"cloud_beaver_admin_password"`
}

type Server

type Server struct {
	SqleCnf        SqleConfig     `yaml:"sqle_config"`
	DBCnf          DatabaseConfig `yaml:"db_config"`
	SQLQueryConfig SQLQueryConfig `yaml:"sql_query_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"`
	LogMaxSizeMB       int    `yaml:"log_max_size_mb"`
	LogMaxBackupNumber int    `yaml:"log_max_backup_number"`
	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