model

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL