Discover Packages
github.com/jerbe/jim
config
package
Version:
v1.0.3
Opens a new window with list of versions in this module.
Published: Sep 8, 2023
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
¶
type Config struct {
Main Main `yaml:"main"`
Http Http `yaml:"http"`
Redis Redis `yaml:"redis"`
MySQL MySQL `yaml:"mysql"`
MongoDB MongoDB `yaml:"mongodb"`
}
type Http struct {
Port string `yaml:"port"`
}
type Main struct {
JwtSigningKey string `yaml:"jwt_signing_key"`
}
type MongoDB struct {
URI string `yaml:"uri"`
}
type MySQL struct {
URI string `yaml:"uri"`
}
type Redis struct {
Mode string `yaml:"mode"`
MasterName string `yaml:"master_name"`
Addrs []string `yaml:"addrs"`
Database string `yaml:"database"`
Username string `yaml:"username"`
Password string `yaml:"password"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.