Documentation
¶
Overview ¶
Package model defines the data model and our JSON encoding of Zero Zones.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceRecordSet ¶
type ResourceRecordSet struct {
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
TTL uint32 `json:"ttl,omitempty"`
RRDatas []string `json:"rrdatas,omitempty"`
}
ResourceRecordSet is a unit of data that will be returned by the DNS servers.
type Zone ¶
type Zone struct {
Generation int `json:"generation"`
Records []ResourceRecordSet `json:"records,omitempty"`
}
Zone is a user's zone.
func (*Zone) FindRecord ¶
func (z *Zone) FindRecord(name, typ string) (*ResourceRecordSet, bool)
FindRecord finds a record.
Click to show internal directories.
Click to hide internal directories.