discovery

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

type APIServer struct {
	Name string `json:"name"`
	Addr string `json:"addr"`
}

func DiscoverAPIServers

func DiscoverAPIServers(dnsKey string) ([]APIServer, error)

DiscoverAPIServers will try to do a TXT lookup for a given DNS name. If found it will attempt a unmarshal(base64_decode(TXT_RECORD_VALUE)) (pseudo code) into a list of APIServer structs.

One TXT record per server.

Jump to

Keyboard shortcuts

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