Documentation
¶
Index ¶
- func AllConfig() map[string]any
- func GetJwtExpirationTime() (time.Duration, error)
- func GetJwtIssuer() string
- func GetJwtSecret() (string, error)
- func GetLogLevel() string
- func GetMysqlDsn() (dsn string, err error)
- func GetMysqlMaxIdleConns() int
- func GetMysqlMaxLifetime() time.Duration
- func GetMysqlMaxOpenConns() int
- func GetRedisConnMaxLifetime() time.Duration
- func GetRedisDB() int
- func GetRedisExpireTime() (time.Duration, error)
- func GetRedisHost() (string, error)
- func GetRedisKeyPrefix() (string, error)
- func GetRedisMasterName() (string, error)
- func GetRedisMinIdleConns() int
- func GetRedisMode() string
- func GetRedisPassword() (string, error)
- func GetRedisPoolSize() int
- func GetRedisSentinelHosts() ([]string, error)
- func GetRedisSentinelPassword() (string, error)
- func GetRedisUser() string
- func GetServerBind() string
- func GetServerTimeZone() string
- func LoadConfig(configPath string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJwtExpirationTime ¶
func GetJwtIssuer ¶
func GetJwtIssuer() string
func GetMysqlMaxIdleConns ¶
func GetMysqlMaxIdleConns() int
func GetMysqlMaxLifetime ¶
func GetMysqlMaxOpenConns ¶
func GetMysqlMaxOpenConns() int
func GetRedisConnMaxLifetime ¶
func GetRedisDB ¶
func GetRedisDB() int
func GetRedisExpireTime ¶
func GetRedisHost ¶
func GetRedisKeyPrefix ¶
func GetRedisMasterName ¶
func GetRedisMinIdleConns ¶
func GetRedisMinIdleConns() int
func GetRedisMode ¶
func GetRedisMode() string
func GetRedisPassword ¶
func GetRedisSentinelHosts ¶
func GetRedisUser ¶
func GetRedisUser() string
func GetServerTimeZone ¶
func GetServerTimeZone() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.