services

package
v0.0.0-...-4245874 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudflareService

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

func NewCloudflareService

func NewCloudflareService(api *cloudflare.API) *CloudflareService

func (*CloudflareService) GetDNSAAAARecord

func (cfs *CloudflareService) GetDNSAAAARecord(ctx context.Context, domain string) (*cloudflare.DNSRecord, error)

Gets single AAAA Record using domain name

func (*CloudflareService) GetDNSARecord

func (cfs *CloudflareService) GetDNSARecord(ctx context.Context, domain string) (*cloudflare.DNSRecord, error)

Gets a single A record using domain name

type IPDiscoveryService

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

func NewIPDiscoveryService

func NewIPDiscoveryService(dProvider models.DiscoveryProvider) *IPDiscoveryService

func (*IPDiscoveryService) GetSelfV4

func (ipds *IPDiscoveryService) GetSelfV4(ctx context.Context) (netip.Addr, error)

Gets external IPv4 Address

func (*IPDiscoveryService) GetSelfV6

func (ipds *IPDiscoveryService) GetSelfV6(ctx context.Context) (netip.Addr, error)

Gets external IPv6 Address

Jump to

Keyboard shortcuts

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