Discover Packages
github.com/unliar/happysooner-config
package
module
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Nov 28, 2020
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.
README
README
¶
go-micro read config from kv/file/... and scan to struct
how to use
look for examples or index_test.go
Expand ▾
Collapse ▴
Documentation
¶
type MySQL struct {
Host string `json:"host"`
Port int `json:"port"`
User string `json:"user"`
Password string `json:"password"`
Database string `json:"database,omitempty"`
}
MySQL Config Model
type NSQ struct {
Host string `json:"host"`
Port int `json:"port"`
}
type Redis struct {
Host string `json:"host"`
Port int `json:"port"`
Password string `json:"password"`
Database int `json:"database,omitempty"`
}
type SMTP struct {
Host string `json:"host"`
User string `json:"user"`
Password string `json:"password"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.