domain

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RecordTypeA = "A"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	ID         string `json:"id,omitempty"`
	DNSName    string `json:"dnsName"`
	Target     Target `json:"target"`
	RecordType string `json:"recordType"`
	TTL        int    `json:"ttl"`
}

Endpoint is a IP (Service) - Domain connection.

func NewEndpoint

func NewEndpoint(dnsName, recordType string, targets ...string) *Endpoint

func (*Endpoint) Equal

func (e *Endpoint) Equal(other *Endpoint) bool

Equal returns true if other Endpoint is same than target.

type Target

type Target []string

Target is array of network endpoints that domain points to.

func (Target) Equal

func (target Target) Equal(other Target) bool

Jump to

Keyboard shortcuts

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