package
Version:
v0.0.0-...-598afe9
Opens a new window with list of versions in this module.
Published: Mar 12, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package conf only accomplishes loading configuration.
type Database struct {
DBName string `yaml:"name"`
DBUser string `yaml:"user"`
DBPassword string `yaml:"password"`
DBHost string `yaml:"host"`
DBPort string `yaml:"port"`
}
type Image struct {
AvatarPath string `yaml:"avatar"`
}
type JWT struct {
SigningAlgorithm string `yaml:"signing_algorithm"`
AccessSecret string `yaml:"access_secret"`
RefreshSecret string `yaml:"refresh_secret"`
Timeout time.Duration `yaml:"duration"`
Issuer string
MaxRefreshTime time.Duration `yaml:"max_refresh_time"`
}
type Redis struct {
RedisHost string `yaml:"host"`
RedisPort string `yaml:"port"`
RedisPassword string `yaml:"password"`
}
type Storage struct {
*Image
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.