package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Feb 28, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Auth struct {
Secret string `yaml:"secret" json:"secret"`
}
type Config struct {
DataBase DataBase `yaml:"database" json:"database"`
Auth Auth `yaml:"auth" json:"auth"`
DriverConfig DriverConfig `yaml:"driver" json:"driver"`
SiteConfig SiteConfig `yaml:"site" json:"site"`
}
type DataBase struct {
Mysql Mysql `ysml:"mysql" json:"mysql"`
}
type DriverConfig struct {
Name string `yaml:"name" json:"name"`
Config map[string]interface{} `yaml:"config" json:"config"`
}
type Mysql struct {
Url string `yaml:"url" json:"url"`
Port int `yaml:"port" json:"port"`
Database string `yaml:"database" json:"database"`
Username string `yaml:"username" json:"username"`
Password string `ysml:"password" json:"password"`
}
type SiteConfig struct {
AllowRegister bool `yaml:"allowRegister" json:"allowRegister"`
Title string `yaml:"title" json:"title"`
CopyRight string `yaml:"copyright" json:"copyright"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.