From c4ab438a9fd5723eb55c1cb24724324010d51980 Mon Sep 17 00:00:00 2001 From: ZueffC Date: Tue, 7 Jan 2025 23:57:30 +0300 Subject: [PATCH] Scope reworked --- dns_manager.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/dns_manager.go b/dns_manager.go index dd3ae53..35d33f0 100644 --- a/dns_manager.go +++ b/dns_manager.go @@ -18,22 +18,22 @@ type Record struct { TTL uint16 } -type Actions interface { - AddRecord(Record) response - DeleteRecord() response - UpdateRecord(Record) response +type actions interface { + AddRecord(Record) Response + DeleteRecord() Response + UpdateRecord(Record) Response ReadRecords() (error, *[]Record) } -type Manager interface { - New() *Actions +type manager interface { + New() *actions } -type response struct { +type Response struct { error string message string } -func New(manager_config Manager) *Actions { +func New(manager_config manager) *actions { return manager_config.New() }