Documentation ¶
Index ¶
Constants ¶
View Source
const LoginExpirationDuration = OneDay
View Source
const OneDay = 24 * time.Hour
Variables ¶
View Source
var JwtSignatureKey []byte
View Source
var JwtSigningMethod = jwt.SigningMethodRS256
Functions ¶
func MakeDatabaseConfig ¶
func MakeDatabaseConfig()
func MakeJwtConfig ¶
func MakeJwtConfig()
Types ¶
type BasicDBConf ¶
type Config ¶
type Config struct { App AppConf MongoDb MongoDbConf Redis RedisConf Http HttpConf Log LogConf Database Databases }
Config ...
type ConnectionDBName ¶
type ConnectionDBName string
type DatabaseConfig ¶
type MongoDbConf ¶
type MongoDbConf struct {
Dsn string
}
type PostgresConf ¶
type PostgresConf struct {
Schema string
}
Click to show internal directories.
Click to hide internal directories.