rrstore

package
v0.0.0-...-4592af0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package rrstore provides concurrency-safe storage for DNS Resource Records (RRs).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RRReader

type RRReader interface {
	Get(fqdn string, rrType uint16) (rrs []string, ok bool)
}

type RRStore

type RRStore interface {
	RRReader
	RRWriter
}

func New

func New() RRStore

New creates a new record table to store DNS Resource Records.

type RRWriter

type RRWriter interface {
	Set(rl RRs)
}

type RRs

type RRs map[uint16]map[string][]string

RRs stores FQDN RR answer for various RR Types. Example:

{
  dns.TypeA: {"a.b." : ["10.0.0.3"]},
  dns.TypeSRV: {"a.b." : ["10.0.0.3:23481","10.0.0.7:11215"]}
}

Jump to

Keyboard shortcuts

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