mirror of
https://github.com/Egida/EndGame0.git
synced 2025-08-05 04:44:20 -04:00
21 lines
310 B
Go
21 lines
310 B
Go
package onionbalance
|
|
|
|
import "encoding/json"
|
|
|
|
type InstanceConfig struct {
|
|
Address string
|
|
}
|
|
|
|
type ServiceConfig struct {
|
|
Key string
|
|
Instances []InstanceConfig
|
|
}
|
|
|
|
type ConfigData struct {
|
|
Services []ServiceConfig
|
|
}
|
|
|
|
func (c ConfigData) String() string {
|
|
by, _ := json.Marshal(c)
|
|
return string(by)
|
|
}
|