/dnspodcn

DNSPod.cn Go SDK and DNS Provider

Primary LanguageGoMIT LicenseMIT

DNSPod.cn Go SDK DNSPod.cn Go 开发工具包

Build Status Coverage Status Go.Dev reference Go Report Card Release Downloads Chat Community

dnspodcnDNSPod API 的 Go SDK。其中 Provider 实现了 libdns 接口。

安装

$ go get -u clevergo.tech/dnspodcn

使用

import "clevergo.tech/dnspodcn"

client := dnspodcn.NewClient("APP_ID", "APP_TOKEN")

APP_IDAPP_TOKEN 为 DNSPod 后台生成的 API 的 ID 和 Token。

接口

  • DNS 记录
    • 新增记录:client.CreateRecord
    • 删除记录:client.DeleteRecord
    • 查询记录:client.QueryRecords
    • 修改记录:client.UpdateRecord
  • ...

目前仅实现了 DNS 记录的相关接口,如果你有其他接口要求,可以通过 issue 反馈,也可以自行实现并通过 PR 提交。