File: zones.go

package info (click to toggle)
golang-github-nesv-go-dynect 0.6.0%2Bgit20190806.63e11f6-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 224 kB
  • sloc: makefile: 2
file content (24 lines) | stat: -rw-r--r-- 728 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package dynect

// ZonesResponse is used for holding the data returned by a call to
// "https://api.dynect.net/REST/Zone/".
type ZonesResponse struct {
	ResponseBlock
	Data []string `json:"data"`
}

// ZoneResponse is used for holding the data returned by a call to
// "https://api.dynect.net/REST/Zone/ZONE_NAME".
type ZoneResponse struct {
	ResponseBlock
	Data ZoneDataBlock `json:"data"`
}

// Type ZoneDataBlock is used as a nested struct, which holds the data for a
// zone returned by a call to "https://api.dynect.net/REST/Zone/ZONE_NAME".
type ZoneDataBlock struct {
	Serial      int    `json:"serial"`
	SerialStyle string `json:"serial_style"`
	Zone        string `json:"zone"`
	ZoneType    string `json:"zone_type"`
}