common

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DnsRecord added in v1.16.0

type DnsRecord struct {
	IpV4      string    `json:"ipv4,omitempty"`
	IpV6      string    `json:"ipv6,omitempty"`
	Host      string    `json:"host"`
	Timestamp time.Time `json:"timestamp"`
}

func NewResolvedIp

func NewResolvedIp(host string) *DnsRecord

func (*DnsRecord) Equals added in v1.16.0

func (resolved *DnsRecord) Equals(ip *DnsRecord) bool

Equals checks for equality and ignores timestamps

func (*DnsRecord) HasIpV4 added in v1.16.0

func (resolved *DnsRecord) HasIpV4() bool

func (*DnsRecord) HasIpV6 added in v1.16.0

func (resolved *DnsRecord) HasIpV6() bool

func (*DnsRecord) Hash added in v1.16.0

func (resolved *DnsRecord) Hash() string

func (*DnsRecord) IsValid added in v1.16.0

func (resolved *DnsRecord) IsValid() bool

func (*DnsRecord) String added in v1.16.0

func (resolved *DnsRecord) String() string

func (*DnsRecord) Validate added in v1.16.0

func (resolved *DnsRecord) Validate() error

type UpdateRecordRequest added in v1.16.0

type UpdateRecordRequest struct {
	PublicIp  DnsRecord `json:"public_ip"`
	Signature string    `json:"signature"`
}

func (*UpdateRecordRequest) Validate added in v1.16.0

func (r *UpdateRecordRequest) Validate() error

Jump to

Keyboard shortcuts

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