Documentation
¶
Index ¶
- Constants
- func ParseQuery(cache *Records, m *dns.Msg) error
- type ARecord
- type Distributed
- type Records
- func (r *Records) AddARecord(domain string, ip string) error
- func (r *Records) Find(domain string) []string
- func (r *Records) ListenUpdates()
- func (r *Records) Local(domain string, bytes []byte) error
- func (r *Records) Propose(domain string, ip string, action uint8) error
- func (r *Records) RemoveARecord(domain string, ip string) error
Constants ¶
View Source
const ADD_RECORD = 0x1
View Source
const REMOVE_RECORD = 0x2
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ARecord ¶
type ARecord struct {
IPs []string
}
func NewARecord ¶ added in v0.0.69
func NewARecord() *ARecord
type Distributed ¶ added in v0.0.119
type Records ¶
type Records struct { ARecords map[string]*ARecord Agent string Client *client.Http User *authentication.User Updates chan distributed.KV }
func (*Records) ListenUpdates ¶ added in v0.0.119
func (r *Records) ListenUpdates()
Click to show internal directories.
Click to hide internal directories.