2023-02-19 21:22:59 +00:00
|
|
|
import { Client, factory } from "@lumeweb/libkernel-universal";
|
|
|
|
const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA";
|
|
|
|
export class DnsClient extends Client {
|
2023-02-19 21:30:01 +00:00
|
|
|
async register() {
|
|
|
|
return this.callModuleReturn("register");
|
2022-07-21 17:22:02 +00:00
|
|
|
}
|
2023-02-19 21:22:59 +00:00
|
|
|
async clear() {
|
|
|
|
return this.callModuleReturn("clear");
|
2022-07-21 17:22:02 +00:00
|
|
|
}
|
2023-02-19 21:22:59 +00:00
|
|
|
async getResolvers() {
|
2023-02-19 21:34:33 +00:00
|
|
|
return this.callModuleReturn("getResolvers");
|
2022-07-21 17:22:02 +00:00
|
|
|
}
|
2023-02-19 21:22:59 +00:00
|
|
|
async ready() {
|
|
|
|
return this.callModuleReturn("ready");
|
2022-07-20 11:11:06 +00:00
|
|
|
}
|
|
|
|
}
|
2023-02-19 21:22:59 +00:00
|
|
|
export const createClient = factory(DnsClient, MODULE);
|