Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server ServerConfig `gcfg:"server"` Db DbConfig `gcfg:"db"` RedisGeneral RedisGeneralConfig `gcfg:"redis-general"` RedisMaster RedisInstanceConfig `gcfg:"redis-master"` RedisSlave RedisInstanceConfig `gcfg:"redis-slave"` }
func LoadConfig ¶
type DbConfig ¶
type DbConfig struct { ConnectionStringMaster string `gcfg:"connection-string-master"` ConnectionStringSlave string `gcfg:"connection-string-slave"` Type string `gcfg:"type"` Engine string `gcfg:"engine"` Encoding string `gcfg:"encoding"` UserTable string `gcfg:"user-table"` UserTableKey string `gcfg:"user-table-key"` }
type RedisGeneralConfig ¶
type RedisGeneralConfig struct {
Prefix string `gcfg:"prefix"`
}
type RedisInstanceConfig ¶
type ServerConfig ¶
type ServerConfig struct { Address string `gcfg:"address"` AccessTokenExpirationInSec int `gcfg:"access-token-expiration-in-sec"` RefreshTokenExpirationInSec int `gcfg:"refresh-token-expiration-in-sec"` AllowMultipleAccessTokens bool `gcfg:"allow-multiple-access-tokens"` ForceReadOnly bool `gcfg:"force-read-only"` }
Click to show internal directories.
Click to hide internal directories.