mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2026-01-03 22:06:36 +08:00
实现基本的集群DNS列表、设置、简单数据同步
This commit is contained in:
17
internal/dnsclients/record.go
Normal file
17
internal/dnsclients/record.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package dnsclients
|
||||
|
||||
type RecordType = string
|
||||
|
||||
const (
|
||||
RecordTypeA RecordType = "A"
|
||||
RecordTypeCName RecordType = "CNAME"
|
||||
RecordTypeText RecordType = "TXT"
|
||||
)
|
||||
|
||||
type Record struct {
|
||||
Id string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Type RecordType `json:"type"`
|
||||
Value string `json:"value"`
|
||||
Route string `json:"route"`
|
||||
}
|
||||
Reference in New Issue
Block a user