Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Server struct {
Port int `yaml:"port" envconfig:"ENV_SERVER_PORT"`
GinMode string `yaml:"ginMode" envconfig:"ENV_SERVER_GIN_MODE"`
SessionSecret string `yaml:"sessionSecret" envconfig:"ENV_SERVER_SESSION_SECRET"`
Title string `yaml:"title" envconfig:"ENV_SERVER_TITLE"`
MaxWordsAllowed int `yaml:"maxWordsAllowed" envconfig:"ENV_SERVER_MAX_WORDS_ALLOWED"`
} `yaml:"server"`
Database struct {
Location string `yaml:"location" envconfig:"ENV_DB_LOCATION"`
ConnStr string
} `yaml:"database"`
User struct {
Name string `yaml:"name" envconfig:"ENV_USER_NAME"`
Password string `yaml:"password" envconfig:"ENV_USER_PASSWORD"`
} `yaml:"user"`
Az struct {
ConnStr string `yaml:"connStr" envconfig:"ENV_AZ_CONNSTR"`
BlobContainer string `yaml:"blobContainer" envconfig:"ENV_AZ_BLOB_CONTAINER"`
Blob string `yaml:"blob" envconfig:"ENV_AZ_BLOB"`
BackupIntervalInMinutes int `yaml:"backupInterval" envconfig:"ENV_AZ_BACKUP_INTERVAL"`
} `yaml:"az"`
Runtime struct {
LastBackupAt time.Time
LastModifiedAt time.Time
F *embed.FS
AppVer string
GitHash string
BuildTime string
GoVer string
}
}
Click to show internal directories.
Click to hide internal directories.