gslb

package
v0.0.0-...-f2f38ec Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidIPAddress       = errors.New("invalid IP address")
	ErrInvalidIPv4Address     = errors.New("not a valid IPv4 address for A record")
	ErrInvalidIPv6Address     = errors.New("not a valid IPv6 address for AAAA record")
	ErrUnsupportedRecordType  = errors.New("unsupported record type")
	ErrNoCloudflareZoneConfig = errors.New("no cloudflare zone configured")
)

Functions

This section is empty.

Types

type OriginStatus

type OriginStatus struct {
	CurrentPriority int
	CurrentIPs      []string
	Initialized     bool
	LastCheck       time.Time
}

type Service

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

func NewService

func NewService(cfg *config.Config) (*Service, error)

func (*Service) RunOneShot

func (s *Service) RunOneShot(ctx context.Context) error

func (*Service) Start

func (s *Service) Start(ctx context.Context) error

func (*Service) Stop

func (s *Service) Stop()

Jump to

Keyboard shortcuts

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