Documentation ¶
Index ¶
- func GetNSforZone(ctx context.Context, zone string) (ns string, err error)
- func GetRRforZone(ctx context.Context, zone string, hostToGet string, c chan GetRRforZoneResult, ...)
- func JaegerInit(service string) (opentracing.Tracer, io.Closer)
- func Zones(config *Config) []dns.SOA
- type Config
- type GetRRforZoneResult
- type SOAwithRR
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNSforZone ¶
GetNSforZone returns NameServer for zone by doing NS query to the resolver configured in resolv.conf
func GetRRforZone ¶
func GetRRforZone(ctx context.Context, zone string, hostToGet string, c chan GetRRforZoneResult, config *Config)
GetRRforZone send all CNAME and A records that match 'hostToGet' over channel c. If 'hostToGet' is empty all CNAME and A records for zone z will be returned. This function is well suited to be started in parallel as an go routine.
func JaegerInit ¶
func JaegerInit(service string) (opentracing.Tracer, io.Closer)
JaegerInit initialises jaeger object.
Types ¶
type Config ¶
type Config struct { Zones []string NS string // TODO may be able to use nameserver from configfile Resolver string // TODO may be able to use resolver from configfile TTL int // Timeout in seconds ServerPort int // Port for server to bind to ServerURL string // Url to server, used by client Tracing bool // Use jaeger tracing Verbose bool // Print more verbose information }
Config should be populated from an TOML configuration file. Se example.toml in root of this repo.
type GetRRforZoneResult ¶
GetRRforZoneResult is the return struct for GetRRforZone
Click to show internal directories.
Click to hide internal directories.