entities.go 313 B

123456789101112131415161718
  1. package cluster
  2. type ip struct {
  3. Address string `json:"address"`
  4. Votes []vote `json:"vote"`
  5. }
  6. type vote struct {
  7. NodeID string `json:"node_id"`
  8. VotedAt int64 `json:"voted_at"`
  9. Failed bool `json:"failed"`
  10. }
  11. type node struct {
  12. Ips []ip `json:"ips"`
  13. LastPingAt int64 `json:"last_ping_at"`
  14. }