Scope reworked

This commit is contained in:
2025-01-07 23:57:30 +03:00
parent f42bc60311
commit c4ab438a9f

View File

@ -18,22 +18,22 @@ type Record struct {
TTL uint16 TTL uint16
} }
type Actions interface { type actions interface {
AddRecord(Record) response AddRecord(Record) Response
DeleteRecord() response DeleteRecord() Response
UpdateRecord(Record) response UpdateRecord(Record) Response
ReadRecords() (error, *[]Record) ReadRecords() (error, *[]Record)
} }
type Manager interface { type manager interface {
New() *Actions New() *actions
} }
type response struct { type Response struct {
error string error string
message string message string
} }
func New(manager_config Manager) *Actions { func New(manager_config manager) *actions {
return manager_config.New() return manager_config.New()
} }