package dnsexit_manager import ( "sync" dns "smeh/dns-manager" ) const API_BASE = "https://api.dnsexit.com/dns/" type Config struct { API_KEY string } type client struct { Lock sync.Mutex API_KEY string } func (c client) AddRecord(rec dns.Record) dns.Response { new_response := dns.Response{} return new_response } func (c client) DeleteRecord() dns.Response { new_response := dns.Response{} return new_response } func (c client) UpdateRecord(rec dns.Record) dns.Response { new_response := dns.Response{} return new_response } func (c client) ReadRecords() (error, *[]dns.Record) { var list_of_records []dns.Record return nil, &list_of_records } func (conf Config) New() dns.Actions { return client{ Lock: sync.Mutex{}, API_KEY: conf.API_KEY, } }