site

package
v0.0.0-...-6b55a7b Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Site

type Site struct {
	// The identifier of the zone the site belongs to.
	Zone *Zone

	// The identifier of the DNS.
	Dns_id string

	// The name of the site, in the form "<subdomain>.<domain>".
	Name string `yaml:"name"`

	// The content of the DNS record.
	Content string `yaml:"content"`

	// The record type of the DNS record.
	Record string `yaml:"record"`

	// Whether or not the DNS record should be proxied by CloudFlare.
	Is_proxied bool `yaml:"proxy"`

	// The TTL of the DNS record.
	Ttl int `yaml:"ttl"`

	// The subdomains of this DNS record.
	Subdomains []Site `yaml:"subs"`

	Is_initalized bool
}

The internal representation of a site.

type Zone

type Zone struct {
	// The name of the zone.
	Name string `yaml:"zone"`

	// The zone identifier.
	Id string

	// A list of subdomains.
	Subdomains []Site `yaml:"subs"`
}

Jump to

Keyboard shortcuts

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