nameservers

package
v0.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2022 License: BSD-3-Clause Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NextCommandRequestId

func NextCommandRequestId() int64

Types

type CommandRequest

type CommandRequest struct {
	Id          int64
	Code        string
	CommandJSON []byte
}

CommandRequest 命令请求相关

type CommandRequestWaiting

type CommandRequestWaiting struct {
	Timestamp int64
	Chan      chan *pb.NSNodeStreamMessage
}

func (*CommandRequestWaiting) Close

func (this *CommandRequestWaiting) Close()

type NSAccessLogService

type NSAccessLogService struct {
	services.BaseService
}

NSAccessLogService 访问日志相关服务

func (*NSAccessLogService) CreateNSAccessLogs

CreateNSAccessLogs 创建访问日志

func (*NSAccessLogService) FindNSAccessLog

FindNSAccessLog 查找单个日志

func (*NSAccessLogService) ListNSAccessLogs

ListNSAccessLogs 列出单页访问日志

type NSClusterService

type NSClusterService struct {
	services.BaseService
}

NSClusterService 域名服务集群相关服务

func (*NSClusterService) CountAllEnabledNSClusters

func (this *NSClusterService) CountAllEnabledNSClusters(ctx context.Context, req *pb.CountAllEnabledNSClustersRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNSClusters 计算所有可用集群的数量

func (*NSClusterService) CreateNSCluster

CreateNSCluster 创建集群

func (*NSClusterService) DeleteNSCluster

func (this *NSClusterService) DeleteNSCluster(ctx context.Context, req *pb.DeleteNSCluster) (*pb.RPCSuccess, error)

DeleteNSCluster 删除集群

func (*NSClusterService) FindAllEnabledNSClusters

FindAllEnabledNSClusters 查找所有可用集群

func (*NSClusterService) FindEnabledNSCluster

FindEnabledNSCluster 查找单个可用集群信息

func (*NSClusterService) FindNSClusterAccessLog

FindNSClusterAccessLog 查找集群访问日志配置

func (*NSClusterService) FindNSClusterRecursionConfig

FindNSClusterRecursionConfig 读取递归DNS配置

func (*NSClusterService) ListEnabledNSClusters

ListEnabledNSClusters 列出单页可用集群

func (*NSClusterService) UpdateNSCluster

func (this *NSClusterService) UpdateNSCluster(ctx context.Context, req *pb.UpdateNSClusterRequest) (*pb.RPCSuccess, error)

UpdateNSCluster 修改集群

func (*NSClusterService) UpdateNSClusterAccessLog

func (this *NSClusterService) UpdateNSClusterAccessLog(ctx context.Context, req *pb.UpdateNSClusterAccessLogRequest) (*pb.RPCSuccess, error)

UpdateNSClusterAccessLog 修改集群访问日志配置

func (*NSClusterService) UpdateNSClusterRecursionConfig

func (this *NSClusterService) UpdateNSClusterRecursionConfig(ctx context.Context, req *pb.UpdateNSClusterRecursionConfigRequest) (*pb.RPCSuccess, error)

UpdateNSClusterRecursionConfig 设置递归DNS配置

type NSDomainService

type NSDomainService struct {
	services.BaseService
}

NSDomainService 域名相关服务

func (*NSDomainService) CountAllEnabledNSDomains

func (this *NSDomainService) CountAllEnabledNSDomains(ctx context.Context, req *pb.CountAllEnabledNSDomainsRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNSDomains 计算域名数量

func (*NSDomainService) CreateNSDomain

CreateNSDomain 创建域名

func (*NSDomainService) DeleteNSDomain

func (this *NSDomainService) DeleteNSDomain(ctx context.Context, req *pb.DeleteNSDomainRequest) (*pb.RPCSuccess, error)

DeleteNSDomain 删除域名

func (*NSDomainService) FindEnabledNSDomain

FindEnabledNSDomain 查找单个域名

func (*NSDomainService) FindEnabledNSDomainTSIG

FindEnabledNSDomainTSIG 查找TSIG配置

func (*NSDomainService) ListEnabledNSDomains

ListEnabledNSDomains 列出单页域名

func (*NSDomainService) ListNSDomainsAfterVersion

ListNSDomainsAfterVersion 根据版本列出一组域名

func (*NSDomainService) UpdateNSDomain

func (this *NSDomainService) UpdateNSDomain(ctx context.Context, req *pb.UpdateNSDomainRequest) (*pb.RPCSuccess, error)

UpdateNSDomain 修改域名

func (*NSDomainService) UpdateNSDomainTSIG

func (this *NSDomainService) UpdateNSDomainTSIG(ctx context.Context, req *pb.UpdateNSDomainTSIGRequest) (*pb.RPCSuccess, error)

UpdateNSDomainTSIG 修改TSIG配置

type NSKeyService

type NSKeyService struct {
	services.BaseService
}

NSKeyService NS密钥相关服务

func (*NSKeyService) CountAllEnabledNSKeys

func (this *NSKeyService) CountAllEnabledNSKeys(ctx context.Context, req *pb.CountAllEnabledNSKeysRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNSKeys 计算密钥数量

func (*NSKeyService) CreateNSKey

func (this *NSKeyService) CreateNSKey(ctx context.Context, req *pb.CreateNSKeyRequest) (*pb.CreateNSKeyResponse, error)

CreateNSKey 创建密钥

func (*NSKeyService) DeleteNSKey

func (this *NSKeyService) DeleteNSKey(ctx context.Context, req *pb.DeleteNSKeyRequest) (*pb.RPCSuccess, error)

DeleteNSKey 删除密钥

func (*NSKeyService) FindEnabledNSKey

FindEnabledNSKey 查找单个密钥

func (*NSKeyService) ListEnabledNSKeys

ListEnabledNSKeys 列出单页密钥

func (*NSKeyService) ListNSKeysAfterVersion

ListNSKeysAfterVersion 根据版本列出一组密钥

func (*NSKeyService) UpdateNSKey

func (this *NSKeyService) UpdateNSKey(ctx context.Context, req *pb.UpdateNSKeyRequest) (*pb.RPCSuccess, error)

UpdateNSKey 修改密钥

type NSNodeService

type NSNodeService struct {
	services.BaseService
}

NSNodeService 域名服务器节点服务

func (*NSNodeService) CheckNSNodeLatestVersion

CheckNSNodeLatestVersion 检查新版本

func (*NSNodeService) CountAllEnabledNSNodes

func (this *NSNodeService) CountAllEnabledNSNodes(ctx context.Context, req *pb.CountAllEnabledNSNodesRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNSNodes 所有可用的节点数量

func (*NSNodeService) CountAllEnabledNSNodesMatch

func (this *NSNodeService) CountAllEnabledNSNodesMatch(ctx context.Context, req *pb.CountAllEnabledNSNodesMatchRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNSNodesMatch 计算匹配的节点数量

func (*NSNodeService) CountAllUpgradeNSNodesWithNSClusterId

func (this *NSNodeService) CountAllUpgradeNSNodesWithNSClusterId(ctx context.Context, req *pb.CountAllUpgradeNSNodesWithNSClusterIdRequest) (*pb.RPCCountResponse, error)

CountAllUpgradeNSNodesWithNSClusterId 计算需要升级的节点数量

func (*NSNodeService) CreateNSNode

func (this *NSNodeService) CreateNSNode(ctx context.Context, req *pb.CreateNSNodeRequest) (*pb.CreateNSNodeResponse, error)

CreateNSNode 创建节点

func (*NSNodeService) DeleteNSNode

func (this *NSNodeService) DeleteNSNode(ctx context.Context, req *pb.DeleteNSNodeRequest) (*pb.RPCSuccess, error)

DeleteNSNode 删除节点

func (*NSNodeService) DownloadNSNodeInstallationFile

DownloadNSNodeInstallationFile 下载最新DNS节点安装文件

func (*NSNodeService) FindAllEnabledNSNodesWithNSClusterId

FindAllEnabledNSNodesWithNSClusterId 根据集群查找所有节点

func (*NSNodeService) FindCurrentNSNodeConfig

FindCurrentNSNodeConfig 获取当前节点信息

func (*NSNodeService) FindEnabledNSNode

FindEnabledNSNode 查询单个节点信息

func (*NSNodeService) FindNSNodeInstallStatus

FindNSNodeInstallStatus 读取节点安装状态

func (*NSNodeService) InstallNSNode

InstallNSNode 安装节点

func (*NSNodeService) ListEnabledNSNodesMatch

ListEnabledNSNodesMatch 列出单页节点

func (*NSNodeService) NsNodeStream

func (this *NSNodeService) NsNodeStream(server pb.NSNodeService_NsNodeStreamServer) error

NsNodeStream 节点stream

func (*NSNodeService) SendCommandToNSNode

func (this *NSNodeService) SendCommandToNSNode(ctx context.Context, req *pb.NSNodeStreamMessage) (*pb.NSNodeStreamMessage, error)

SendCommandToNSNode 向节点发送命令

func (*NSNodeService) StartNSNode

func (this *NSNodeService) StartNSNode(ctx context.Context, req *pb.StartNSNodeRequest) (*pb.StartNSNodeResponse, error)

StartNSNode 启动节点

func (*NSNodeService) StopNSNode

func (this *NSNodeService) StopNSNode(ctx context.Context, req *pb.StopNSNodeRequest) (*pb.StopNSNodeResponse, error)

StopNSNode 停止节点

func (*NSNodeService) UpdateNSNode

func (this *NSNodeService) UpdateNSNode(ctx context.Context, req *pb.UpdateNSNodeRequest) (*pb.RPCSuccess, error)

UpdateNSNode 修改节点

func (*NSNodeService) UpdateNSNodeConnectedAPINodes

func (this *NSNodeService) UpdateNSNodeConnectedAPINodes(ctx context.Context, req *pb.UpdateNSNodeConnectedAPINodesRequest) (*pb.RPCSuccess, error)

UpdateNSNodeConnectedAPINodes 更改节点连接的API节点信息

func (*NSNodeService) UpdateNSNodeIsInstalled

func (this *NSNodeService) UpdateNSNodeIsInstalled(ctx context.Context, req *pb.UpdateNSNodeIsInstalledRequest) (*pb.RPCSuccess, error)

UpdateNSNodeIsInstalled 修改节点安装状态

func (*NSNodeService) UpdateNSNodeLogin

func (this *NSNodeService) UpdateNSNodeLogin(ctx context.Context, req *pb.UpdateNSNodeLoginRequest) (*pb.RPCSuccess, error)

UpdateNSNodeLogin 修改节点登录信息

func (*NSNodeService) UpdateNSNodeStatus

func (this *NSNodeService) UpdateNSNodeStatus(ctx context.Context, req *pb.UpdateNSNodeStatusRequest) (*pb.RPCSuccess, error)

UpdateNSNodeStatus 更新节点状态

type NSQuestionOptionService

type NSQuestionOptionService struct {
	services.BaseService
}

NSQuestionOptionService DNS查询选项

func (*NSQuestionOptionService) CreateNSQuestionOption

CreateNSQuestionOption 创建选项

func (*NSQuestionOptionService) DeleteNSQuestionOption

func (this *NSQuestionOptionService) DeleteNSQuestionOption(ctx context.Context, req *pb.DeleteNSQuestionOptionRequest) (*pb.RPCSuccess, error)

DeleteNSQuestionOption 删除选项

func (*NSQuestionOptionService) FindNSQuestionOption

FindNSQuestionOption 读取选项

type NSRecordHourlyStatService

type NSRecordHourlyStatService struct {
	services.BaseService
}

NSRecordHourlyStatService NS记录小时统计

func (*NSRecordHourlyStatService) UploadNSRecordHourlyStats

func (this *NSRecordHourlyStatService) UploadNSRecordHourlyStats(ctx context.Context, req *pb.UploadNSRecordHourlyStatsRequest) (*pb.RPCSuccess, error)

UploadNSRecordHourlyStats 上传统计

type NSRecordService

type NSRecordService struct {
	services.BaseService
}

NSRecordService 域名记录相关服务

func (*NSRecordService) CountAllEnabledNSRecords

func (this *NSRecordService) CountAllEnabledNSRecords(ctx context.Context, req *pb.CountAllEnabledNSRecordsRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNSRecords 计算记录数量

func (*NSRecordService) CreateNSRecord

CreateNSRecord 创建记录

func (*NSRecordService) DeleteNSRecord

func (this *NSRecordService) DeleteNSRecord(ctx context.Context, req *pb.DeleteNSRecordRequest) (*pb.RPCSuccess, error)

DeleteNSRecord 删除记录

func (*NSRecordService) FindEnabledNSRecord

FindEnabledNSRecord 查询单个记录信息

func (*NSRecordService) ListEnabledNSRecords

ListEnabledNSRecords 读取单页记录

func (*NSRecordService) ListNSRecordsAfterVersion

ListNSRecordsAfterVersion 根据版本列出一组记录

func (*NSRecordService) UpdateNSRecord

func (this *NSRecordService) UpdateNSRecord(ctx context.Context, req *pb.UpdateNSRecordRequest) (*pb.RPCSuccess, error)

UpdateNSRecord 修改记录

type NSRouteService

type NSRouteService struct {
	services.BaseService
}

NSRouteService 线路相关服务

func (*NSRouteService) CreateNSRoute

CreateNSRoute 创建线路

func (*NSRouteService) DeleteNSRoute

func (this *NSRouteService) DeleteNSRoute(ctx context.Context, req *pb.DeleteNSRouteRequest) (*pb.RPCSuccess, error)

DeleteNSRoute 删除线路

func (*NSRouteService) FindAllEnabledNSRoutes

FindAllEnabledNSRoutes 读取所有线路

func (*NSRouteService) FindEnabledNSRoute

FindEnabledNSRoute 获取单个路线信息

func (*NSRouteService) ListNSRoutesAfterVersion

ListNSRoutesAfterVersion 根据版本列出一组线路

func (*NSRouteService) UpdateNSRoute

func (this *NSRouteService) UpdateNSRoute(ctx context.Context, req *pb.UpdateNSRouteRequest) (*pb.RPCSuccess, error)

UpdateNSRoute 修改线路

func (*NSRouteService) UpdateNSRouteOrders

func (this *NSRouteService) UpdateNSRouteOrders(ctx context.Context, req *pb.UpdateNSRouteOrdersRequest) (*pb.RPCSuccess, error)

UpdateNSRouteOrders 设置线路排序

type NSService

type NSService struct {
	services.BaseService
}

NSService 域名服务

func (*NSService) ComposeNSBoard

func (this *NSService) ComposeNSBoard(ctx context.Context, req *pb.ComposeNSBoardRequest) (*pb.ComposeNSBoardResponse, error)

ComposeNSBoard 组合看板数据

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL