2016-10-08 01:58:37 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
type Config struct {
|
|
|
|
App struct {
|
2016-10-08 03:51:19 +00:00
|
|
|
Name string `json:"name"`
|
|
|
|
Version string `json:"version"`
|
|
|
|
MotdHTML string `json:"motd"`
|
|
|
|
Debug bool `json:"debug"`
|
2016-10-08 01:58:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Web struct {
|
2016-10-08 03:51:19 +00:00
|
|
|
Port int `json:"port"`
|
|
|
|
BindTo string `json:"bind_to"`
|
|
|
|
Extern string `json:"extern"`
|
|
|
|
Title string `json:"title"`
|
2016-10-08 01:58:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Hub struct {
|
2016-10-08 03:51:19 +00:00
|
|
|
Address string `json:"address"`
|
|
|
|
Port int `json:"port"`
|
|
|
|
Tag string `json:"tag"`
|
2016-10-08 01:58:37 +00:00
|
|
|
}
|
|
|
|
}
|