Scope reworked
This commit is contained in:
@ -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()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user