mirror of
https://github.com/Egida/EndGame0.git
synced 2025-08-11 07:40:10 -04:00
EndGame v3
This commit is contained in:
commit
9e36ba54ee
646 changed files with 271674 additions and 0 deletions
21
sourcecode/gobalance/pkg/onionbalance/config.go
Normal file
21
sourcecode/gobalance/pkg/onionbalance/config.go
Normal file
|
@ -0,0 +1,21 @@
|
|||
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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue