Documentation ¶
Index ¶
- Constants
- Variables
- func LookupLocal(records *Records, m *dns.Msg) (*dns.Msg, error)
- func LookupRemote(records *Records, m *dns.Msg) (*dns.Msg, error)
- func ParseQuery(records *Records, m *dns.Msg) (*dns.Msg, error)
- type ARecord
- type Distributed
- type Records
- func (r *Records) AddARecord(domain string, ip string) ([]byte, error)
- func (r *Records) AddAndSave(domain string, ip string)
- func (r *Records) Find(domain string) ([]string, error)
- func (r *Records) ListenRecords()
- func (r *Records) Propose(domain string, ip string, action uint8) error
- func (r *Records) RemoveARecord(domain string, ip string) ([]byte, error)
- func (r *Records) RemoveAndSave(domain string, ip string)
- func (r *Records) Save(bytes []byte, domain string) error
Constants ¶
View Source
const AddRecord = 0x1
View Source
const RemoveRecord = 0x2
Variables ¶
View Source
var (
ErrNotFound = errors.New("record not found")
)
Functions ¶
func LookupLocal ¶ added in v0.0.128
func LookupRemote ¶ added in v0.0.128
Types ¶
type ARecord ¶
type ARecord struct {
Addresses []string
}
func NewARecord ¶ added in v0.0.69
func NewARecord() *ARecord
type Distributed ¶ added in v0.0.119
type Records ¶
type Records struct { ARecords *smaps.Smap Client *client.Http User *authentication.User Nameservers []string Records chan KV.KV }
func (*Records) AddAndSave ¶ added in v0.0.125
func (*Records) ListenRecords ¶ added in v0.0.125
func (r *Records) ListenRecords()
func (*Records) RemoveARecord ¶
func (*Records) RemoveAndSave ¶ added in v0.0.125
Click to show internal directories.
Click to hide internal directories.