Files
APIPark/gateway/admin/model.go
T
2024-08-12 21:38:09 +08:00

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 {
}