init
This commit is contained in:
15
config/service.go
Normal file
15
config/service.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package config
|
||||
|
||||
type ServiceConf struct {
|
||||
Http HttpConf `mapstructure:"http" json:"http" yaml:"http"`
|
||||
Tcp TcpConf `mapstructure:"tcp" json:"tcp" yaml:"tcp"`
|
||||
}
|
||||
|
||||
type HttpConf struct {
|
||||
Host string `mapstructure:"host" json:"host" yaml:"host"`
|
||||
Port string `mapstructure:"port" json:"port" yaml:"port"`
|
||||
}
|
||||
type TcpConf struct {
|
||||
Host string `mapstructure:"host" json:"host" yaml:"host"`
|
||||
Port string `mapstructure:"port" json:"port" yaml:"port"`
|
||||
}
|
||||
Reference in New Issue
Block a user