struct.go 1001 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package config
  2. //BannedIP is exported function
  3. type BannedIP []struct {
  4. IP string `json:"ip"`
  5. Created string `json:"created"`
  6. Source string `json:"source"`
  7. Expires string `json:"expires"`
  8. Reason string `json:"reason"`
  9. }
  10. //BannedPlayer is exported function
  11. type BannedPlayer []struct {
  12. UUID string `json:"uuid"`
  13. Name string `json:"name"`
  14. Created string `json:"created"`
  15. Source string `json:"source"`
  16. Expires string `json:"expires"`
  17. Reason string `json:"reason"`
  18. }
  19. //Op is exported function
  20. type Op []struct {
  21. UUID string `json:"uuid"`
  22. Name string `json:"name"`
  23. Level int `json:"level"`
  24. BypassesPlayerLimit bool `json:"bypassesPlayerLimit"`
  25. }
  26. //Whitelist is exported function
  27. type Whitelist []struct {
  28. UUID string `json:"uuid"`
  29. Name string `json:"name"`
  30. }
  31. //ServerConfig is exported function
  32. type ServerConfig struct {
  33. Key string `json:"key"`
  34. Value string `json:"value"`
  35. }