dns

package
v0.0.0-...-2321e21 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudFlare

type CloudFlare struct {
	// contains filtered or unexported fields
}

func NewCloudFlare

func NewCloudFlare() (*CloudFlare, error)

func (*CloudFlare) GetDomainZoneID

func (c *CloudFlare) GetDomainZoneID(domain string) (string, error)

func (*CloudFlare) GetIP

func (c *CloudFlare) GetIP(ctx context.Context, domain string) (string, error)

func (*CloudFlare) UpdateIP

func (c *CloudFlare) UpdateIP(ctx context.Context, domain, ip string) error

type DNS

type DNS interface {
	GetIP(ctx context.Context, domain string) (string, error)
	UpdateIP(ctx context.Context, domain, ip string) error
}

type Mu

type Mu struct {
	// contains filtered or unexported fields
}

func NewMu

func NewMu(apiUrl string, nodeID int) (*Mu, error)

func (*Mu) GetIP

func (m *Mu) GetIP(ctx context.Context, domain string) (string, error)

func (*Mu) UpdateIP

func (m *Mu) UpdateIP(tx context.Context, domain, ip string) error

Jump to

Keyboard shortcuts

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