pancheri/rule.go

32 lines
400 B
Go
Raw Normal View History

2023-10-02 01:38:23 +00:00
package pancheri
2023-10-02 14:21:08 +00:00
import "net"
2023-10-02 01:38:23 +00:00
const (
RuleTypeA = "A"
RuleTypeAAAA = "AAAA"
RuleTypeCNAME = "CNAME"
RuleTypeTXT = "TXT"
)
2023-10-02 14:21:08 +00:00
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
2023-10-02 01:38:23 +00:00
}