feat: release v1.0.0
This commit is contained in:
@@ -32,6 +32,13 @@ type Database struct {
|
||||
SSLMode string `koanf:"sslMode"`
|
||||
}
|
||||
|
||||
type Redis struct {
|
||||
Addr string `koanf:"addr"`
|
||||
Password string `koanf:"password"`
|
||||
DB int `koanf:"db"`
|
||||
KeyPrefix string `koanf:"key_prefix"`
|
||||
}
|
||||
|
||||
type JWTConfig struct {
|
||||
Secret string `koanf:"secret"`
|
||||
SigningMethod string `koanf:"signing_method"`
|
||||
@@ -41,6 +48,7 @@ type JWTConfig struct {
|
||||
Audience string `koanf:"audience"`
|
||||
TokenHeader string `koanf:"token_header"`
|
||||
TokenPrefix string `koanf:"token_prefix"`
|
||||
CookieName string `koanf:"cookie_name"`
|
||||
}
|
||||
|
||||
type LogConfig struct {
|
||||
@@ -56,6 +64,7 @@ type LogConfig struct {
|
||||
type Config struct {
|
||||
Server Server `koanf:"server"`
|
||||
Database Database `koanf:"database"`
|
||||
Redis Redis `koanf:"redis"`
|
||||
JWTConfig JWTConfig `koanf:"jwt"`
|
||||
Log LogConfig `koanf:"log"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user