package
Version:
v0.0.0-...-78d802f
Opens a new window with list of versions in this module.
Published: Dec 25, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Cache struct {
Driver string `json:"driver"`
Hostname string `json:"hostname"`
Port int `json:"port"`
Database int `json:"database"`
Username string `json:"username"`
Password string `json:"password"`
}
type Config struct {
Server Server `json:"server"`
Database Database `json:"database"`
Cache Cache `json:"cache"`
JWT JWT `json:"jwt"`
}
New returns a new config object from an existing config and unmarshal from yaml or etcd
Backup dumps the config to the location specified in yaml, use to dump from etcd too
Restore restores the config from the location, useful for writing yaml config to etcd
type Database struct {
Driver string `json:"driver"`
Address string `json:"address"`
Port int `json:"port"`
Database string `json:"database"`
Username string `json:"username"`
Password string `json:"password"`
}
type JWT struct {
SigningKey string `json:"signing_ey"`
RefreshKey string `json:"refresh_key"`
}
type Server struct {
Address string `json:"address"`
Port int `json:"port"`
Protocol string `json:"protocol""`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.