Discover Packages
github.com/thomasbs/golang.zone
config
package
Version:
v0.0.0-...-9a9f523
Opens a new window with list of versions in this module.
Published: Oct 20, 2017
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
New creates a new config by reading a json file that matches the types above
type JWTConfig struct {
Secret string `json:"secret"`
PublicKeyPath string `json:"public_key_path"`
PrivateKeyPath string `json:"private_key_path"`
}
type MySQLConfig struct {
Username string `json:"username"`
Password string `json:"password"`
DatabaseName string `json:"database"`
Encoding string `json:"encoding"`
Host string `json:"host"`
Port string `json:"port"`
}
type RedisConfig struct {
Host string `json:"host"`
Post int `json:"port"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.