File: models.go

package info (click to toggle)
golang-github-xenolf-lego 4.9.1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,080 kB
  • sloc: xml: 533; makefile: 128; sh: 18
file content (23 lines) | stat: -rw-r--r-- 553 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package internal

type Recordset struct {
	RecordType string  `json:"type"`
	Name       string  `json:"name"`
	TTL        int     `json:"ttl,omitempty"`
	ID         string  `json:"id,omitempty"`
	Record     *Record `json:"record,omitempty"`
}

type Record struct {
	ID      string `json:"id,omitempty"`
	Content string `json:"content"`
	Enabled bool   `json:"enabled,omitempty"`
}

type Zone struct {
	ID      string `json:"id"`
	Name    string `json:"name"`
	DNSName string `json:"dnsName"`
	FQDN    string `json:"fqdn"`
	URI     string `json:"uri"`
}