cloudflare

package
v0.0.0-...-e260b85 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSRecord

type DNSRecord struct {
	ID      string `json:"id"`
	IP      string `json:"content"`
	Name    string `json:"name"`
	Proxied bool   `json:"proxied"`
	Type    string `json:"type"`
	ZoneID  string `json:"zone_id"`
	TTL     int32  `json:"ttl"`
}

DNSRecord for Cloudflare API

func (*DNSRecord) SetIP

func (r *DNSRecord) SetIP(ip string)

SetIP updates DNSRecord.IP

type DNSRecordResponse

type DNSRecordResponse struct {
	Records []DNSRecord `json:"result"`
	Success bool        `json:"success"`
}

DNSRecordResponse struct

type DNSRecordUpdateResponse

type DNSRecordUpdateResponse struct {
	Record  DNSRecord `json:"result"`
	Success bool      `json:"success"`
}

DNSRecordUpdateResponse struct

type Handler

type Handler struct {
	Configuration *godns.Settings
	API           string
}

Handler struct definition

func (*Handler) DomainLoop

func (handler *Handler) DomainLoop(domain *godns.Domain, panicChan chan<- godns.Domain)

DomainLoop the main logic loop

func (*Handler) SetConfiguration

func (handler *Handler) SetConfiguration(conf *godns.Settings)

SetConfiguration pass dns settings and store it to handler instance

type Zone

type Zone struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

Zone object with id and name

type ZoneResponse

type ZoneResponse struct {
	Zones   []Zone `json:"result"`
	Success bool   `json:"success"`
}

ZoneResponse is a wrapper for Zones

Jump to

Keyboard shortcuts

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