Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWT ¶
type JWT struct { Mode jwts.JWTAlgo `toml:"mode" validate:"oneof=hmac rsa"` Audience string `toml:"audience" validate:"required"` Secret string `toml:"secret_code"` PrivateKey string `toml:"private_key"` PublicKey string `toml:"public_key"` }
JWT is JWT setting
type Logger ¶
type Logger struct { Service string `toml:"service" validate:"required"` Level int `toml:"level"` // 0 is possible value IsStackTrace bool `toml:"is_stacktrace"` FileName string `toml:"file_name"` }
Logger is zerolog setting
type MySQL ¶
type MySQL struct { Encrypted bool `toml:"encrypted"` Host string `toml:"host"` Port uint16 `toml:"port"` DBName string `toml:"dbname"` User string `toml:"user"` Pass string `toml:"pass"` Debug bool `toml:"debug"` }
MySQL is MySQL Server setting
Click to show internal directories.
Click to hide internal directories.