mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
17 lines
519 B
Go
17 lines
519 B
Go
package admin
|
|
|
|
type Node struct {
|
|
Id string `json:"id,omitempty" yaml:"id"`
|
|
Name string `json:"name,omitempty" yaml:"name"`
|
|
Peer []string `json:"peer,omitempty" yaml:"peer"`
|
|
Admin []string `json:"admin,omitempty" yaml:"admin"`
|
|
Server []string `json:"server,omitempty" yaml:"server"`
|
|
Leader bool `json:"leader,omitempty" yaml:"leader"`
|
|
}
|
|
type Info struct {
|
|
Cluster string `yaml:"cluster" json:"cluster,omitempty"`
|
|
Nodes []*Node `yaml:"nodes" json:"nodes,omitempty"`
|
|
}
|
|
type Version struct {
|
|
}
|