pancheri/rule.go

32 lines
400 B
Go

package pancheri
import "net"
const (
RuleTypeA = "A"
RuleTypeAAAA = "AAAA"
RuleTypeCNAME = "CNAME"
RuleTypeTXT = "TXT"
)
type RecordA struct {
In string
Ip net.IP
TTL uint
}
type RecordAAAA struct {
In string
Ip net.IP
TTL uint
}
type RecordCNAME struct {
In string
Target string
TTL uint
}
type RecordTXT struct {
In string
Content []string
TTL uint
}