From 85e42ef70c8df0addb22f48f4fe8c850a2cc7781 Mon Sep 17 00:00:00 2001 From: OxFF Date: Wed, 8 Jan 2025 00:52:33 +0300 Subject: [PATCH] Update dns_manager.go --- dns_manager.go | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/dns_manager.go b/dns_manager.go index 35d33f0..2638458 100644 --- a/dns_manager.go +++ b/dns_manager.go @@ -2,38 +2,38 @@ package dns_manager type RecordType int -const ( - None RecordType = iota - A - AAAA - MX - CNAME - TXT +const ( + None RecordType = iota + A + AAAA + MX + CNAME + TXT ) type Record struct { - Type RecordType - Host string - Content string - TTL uint16 + Type RecordType + Host string + Content string + TTL uint16 } -type actions interface { - AddRecord(Record) Response - DeleteRecord() Response - UpdateRecord(Record) Response - ReadRecords() (error, *[]Record) +type Actions interface { + AddRecord(Record) Response + DeleteRecord() Response + UpdateRecord(Record) Response + ReadRecords() (error, *[]Record) } type manager interface { - New() *actions + New() Actions } type Response struct { - error string - message string + error string + message string } -func New(manager_config manager) *actions { - return manager_config.New() +func New(manager_config manager) Actions { + return manager_config.New() }