Documentation ¶
Index ¶
- func NextCommandRequestId() int64
- type CommandRequest
- type CommandRequestWaiting
- type NSAccessLogService
- func (this *NSAccessLogService) CreateNSAccessLogs(ctx context.Context, req *pb.CreateNSAccessLogsRequest) (*pb.CreateNSAccessLogsResponse, error)
- func (this *NSAccessLogService) FindNSAccessLog(ctx context.Context, req *pb.FindNSAccessLogRequest) (*pb.FindNSAccessLogResponse, error)
- func (this *NSAccessLogService) ListNSAccessLogs(ctx context.Context, req *pb.ListNSAccessLogsRequest) (*pb.ListNSAccessLogsResponse, error)
- type NSClusterService
- func (this *NSClusterService) CountAllEnabledNSClusters(ctx context.Context, req *pb.CountAllEnabledNSClustersRequest) (*pb.RPCCountResponse, error)
- func (this *NSClusterService) CreateNSCluster(ctx context.Context, req *pb.CreateNSClusterRequest) (*pb.CreateNSClusterResponse, error)
- func (this *NSClusterService) DeleteNSCluster(ctx context.Context, req *pb.DeleteNSCluster) (*pb.RPCSuccess, error)
- func (this *NSClusterService) FindAllEnabledNSClusters(ctx context.Context, req *pb.FindAllEnabledNSClustersRequest) (*pb.FindAllEnabledNSClustersResponse, error)
- func (this *NSClusterService) FindEnabledNSCluster(ctx context.Context, req *pb.FindEnabledNSClusterRequest) (*pb.FindEnabledNSClusterResponse, error)
- func (this *NSClusterService) FindNSClusterAccessLog(ctx context.Context, req *pb.FindNSClusterAccessLogRequest) (*pb.FindNSClusterAccessLogResponse, error)
- func (this *NSClusterService) FindNSClusterRecursionConfig(ctx context.Context, req *pb.FindNSClusterRecursionConfigRequest) (*pb.FindNSClusterRecursionConfigResponse, error)
- func (this *NSClusterService) ListEnabledNSClusters(ctx context.Context, req *pb.ListEnabledNSClustersRequest) (*pb.ListEnabledNSClustersResponse, error)
- func (this *NSClusterService) UpdateNSCluster(ctx context.Context, req *pb.UpdateNSClusterRequest) (*pb.RPCSuccess, error)
- func (this *NSClusterService) UpdateNSClusterAccessLog(ctx context.Context, req *pb.UpdateNSClusterAccessLogRequest) (*pb.RPCSuccess, error)
- func (this *NSClusterService) UpdateNSClusterRecursionConfig(ctx context.Context, req *pb.UpdateNSClusterRecursionConfigRequest) (*pb.RPCSuccess, error)
- type NSDomainService
- func (this *NSDomainService) CountAllEnabledNSDomains(ctx context.Context, req *pb.CountAllEnabledNSDomainsRequest) (*pb.RPCCountResponse, error)
- func (this *NSDomainService) CreateNSDomain(ctx context.Context, req *pb.CreateNSDomainRequest) (*pb.CreateNSDomainResponse, error)
- func (this *NSDomainService) DeleteNSDomain(ctx context.Context, req *pb.DeleteNSDomainRequest) (*pb.RPCSuccess, error)
- func (this *NSDomainService) FindEnabledNSDomain(ctx context.Context, req *pb.FindEnabledNSDomainRequest) (*pb.FindEnabledNSDomainResponse, error)
- func (this *NSDomainService) FindEnabledNSDomainTSIG(ctx context.Context, req *pb.FindEnabledNSDomainTSIGRequest) (*pb.FindEnabledNSDomainTSIGResponse, error)
- func (this *NSDomainService) ListEnabledNSDomains(ctx context.Context, req *pb.ListEnabledNSDomainsRequest) (*pb.ListEnabledNSDomainsResponse, error)
- func (this *NSDomainService) ListNSDomainsAfterVersion(ctx context.Context, req *pb.ListNSDomainsAfterVersionRequest) (*pb.ListNSDomainsAfterVersionResponse, error)
- func (this *NSDomainService) UpdateNSDomain(ctx context.Context, req *pb.UpdateNSDomainRequest) (*pb.RPCSuccess, error)
- func (this *NSDomainService) UpdateNSDomainTSIG(ctx context.Context, req *pb.UpdateNSDomainTSIGRequest) (*pb.RPCSuccess, error)
- type NSKeyService
- func (this *NSKeyService) CountAllEnabledNSKeys(ctx context.Context, req *pb.CountAllEnabledNSKeysRequest) (*pb.RPCCountResponse, error)
- func (this *NSKeyService) CreateNSKey(ctx context.Context, req *pb.CreateNSKeyRequest) (*pb.CreateNSKeyResponse, error)
- func (this *NSKeyService) DeleteNSKey(ctx context.Context, req *pb.DeleteNSKeyRequest) (*pb.RPCSuccess, error)
- func (this *NSKeyService) FindEnabledNSKey(ctx context.Context, req *pb.FindEnabledNSKeyRequest) (*pb.FindEnabledNSKeyResponse, error)
- func (this *NSKeyService) ListEnabledNSKeys(ctx context.Context, req *pb.ListEnabledNSKeysRequest) (*pb.ListEnabledNSKeysResponse, error)
- func (this *NSKeyService) ListNSKeysAfterVersion(ctx context.Context, req *pb.ListNSKeysAfterVersionRequest) (*pb.ListNSKeysAfterVersionResponse, error)
- func (this *NSKeyService) UpdateNSKey(ctx context.Context, req *pb.UpdateNSKeyRequest) (*pb.RPCSuccess, error)
- type NSNodeService
- func (this *NSNodeService) CheckNSNodeLatestVersion(ctx context.Context, req *pb.CheckNSNodeLatestVersionRequest) (*pb.CheckNSNodeLatestVersionResponse, error)
- func (this *NSNodeService) CountAllEnabledNSNodes(ctx context.Context, req *pb.CountAllEnabledNSNodesRequest) (*pb.RPCCountResponse, error)
- func (this *NSNodeService) CountAllEnabledNSNodesMatch(ctx context.Context, req *pb.CountAllEnabledNSNodesMatchRequest) (*pb.RPCCountResponse, error)
- func (this *NSNodeService) CountAllUpgradeNSNodesWithNSClusterId(ctx context.Context, req *pb.CountAllUpgradeNSNodesWithNSClusterIdRequest) (*pb.RPCCountResponse, error)
- func (this *NSNodeService) CreateNSNode(ctx context.Context, req *pb.CreateNSNodeRequest) (*pb.CreateNSNodeResponse, error)
- func (this *NSNodeService) DeleteNSNode(ctx context.Context, req *pb.DeleteNSNodeRequest) (*pb.RPCSuccess, error)
- func (this *NSNodeService) DownloadNSNodeInstallationFile(ctx context.Context, req *pb.DownloadNSNodeInstallationFileRequest) (*pb.DownloadNSNodeInstallationFileResponse, error)
- func (this *NSNodeService) FindAllEnabledNSNodesWithNSClusterId(ctx context.Context, req *pb.FindAllEnabledNSNodesWithNSClusterIdRequest) (*pb.FindAllEnabledNSNodesWithNSClusterIdResponse, error)
- func (this *NSNodeService) FindCurrentNSNodeConfig(ctx context.Context, req *pb.FindCurrentNSNodeConfigRequest) (*pb.FindCurrentNSNodeConfigResponse, error)
- func (this *NSNodeService) FindEnabledNSNode(ctx context.Context, req *pb.FindEnabledNSNodeRequest) (*pb.FindEnabledNSNodeResponse, error)
- func (this *NSNodeService) FindNSNodeInstallStatus(ctx context.Context, req *pb.FindNSNodeInstallStatusRequest) (*pb.FindNSNodeInstallStatusResponse, error)
- func (this *NSNodeService) InstallNSNode(ctx context.Context, req *pb.InstallNSNodeRequest) (*pb.InstallNSNodeResponse, error)
- func (this *NSNodeService) ListEnabledNSNodesMatch(ctx context.Context, req *pb.ListEnabledNSNodesMatchRequest) (*pb.ListEnabledNSNodesMatchResponse, error)
- func (this *NSNodeService) NsNodeStream(server pb.NSNodeService_NsNodeStreamServer) error
- func (this *NSNodeService) SendCommandToNSNode(ctx context.Context, req *pb.NSNodeStreamMessage) (*pb.NSNodeStreamMessage, error)
- func (this *NSNodeService) StartNSNode(ctx context.Context, req *pb.StartNSNodeRequest) (*pb.StartNSNodeResponse, error)
- func (this *NSNodeService) StopNSNode(ctx context.Context, req *pb.StopNSNodeRequest) (*pb.StopNSNodeResponse, error)
- func (this *NSNodeService) UpdateNSNode(ctx context.Context, req *pb.UpdateNSNodeRequest) (*pb.RPCSuccess, error)
- func (this *NSNodeService) UpdateNSNodeConnectedAPINodes(ctx context.Context, req *pb.UpdateNSNodeConnectedAPINodesRequest) (*pb.RPCSuccess, error)
- func (this *NSNodeService) UpdateNSNodeIsInstalled(ctx context.Context, req *pb.UpdateNSNodeIsInstalledRequest) (*pb.RPCSuccess, error)
- func (this *NSNodeService) UpdateNSNodeLogin(ctx context.Context, req *pb.UpdateNSNodeLoginRequest) (*pb.RPCSuccess, error)
- func (this *NSNodeService) UpdateNSNodeStatus(ctx context.Context, req *pb.UpdateNSNodeStatusRequest) (*pb.RPCSuccess, error)
- type NSQuestionOptionService
- func (this *NSQuestionOptionService) CreateNSQuestionOption(ctx context.Context, req *pb.CreateNSQuestionOptionRequest) (*pb.CreateNSQuestionOptionResponse, error)
- func (this *NSQuestionOptionService) DeleteNSQuestionOption(ctx context.Context, req *pb.DeleteNSQuestionOptionRequest) (*pb.RPCSuccess, error)
- func (this *NSQuestionOptionService) FindNSQuestionOption(ctx context.Context, req *pb.FindNSQuestionOptionRequest) (*pb.FindNSQuestionOptionResponse, error)
- type NSRecordHourlyStatService
- type NSRecordService
- func (this *NSRecordService) CountAllEnabledNSRecords(ctx context.Context, req *pb.CountAllEnabledNSRecordsRequest) (*pb.RPCCountResponse, error)
- func (this *NSRecordService) CreateNSRecord(ctx context.Context, req *pb.CreateNSRecordRequest) (*pb.CreateNSRecordResponse, error)
- func (this *NSRecordService) DeleteNSRecord(ctx context.Context, req *pb.DeleteNSRecordRequest) (*pb.RPCSuccess, error)
- func (this *NSRecordService) FindEnabledNSRecord(ctx context.Context, req *pb.FindEnabledNSRecordRequest) (*pb.FindEnabledNSRecordResponse, error)
- func (this *NSRecordService) ListEnabledNSRecords(ctx context.Context, req *pb.ListEnabledNSRecordsRequest) (*pb.ListEnabledNSRecordsResponse, error)
- func (this *NSRecordService) ListNSRecordsAfterVersion(ctx context.Context, req *pb.ListNSRecordsAfterVersionRequest) (*pb.ListNSRecordsAfterVersionResponse, error)
- func (this *NSRecordService) UpdateNSRecord(ctx context.Context, req *pb.UpdateNSRecordRequest) (*pb.RPCSuccess, error)
- type NSRouteService
- func (this *NSRouteService) CreateNSRoute(ctx context.Context, req *pb.CreateNSRouteRequest) (*pb.CreateNSRouteResponse, error)
- func (this *NSRouteService) DeleteNSRoute(ctx context.Context, req *pb.DeleteNSRouteRequest) (*pb.RPCSuccess, error)
- func (this *NSRouteService) FindAllEnabledNSRoutes(ctx context.Context, req *pb.FindAllEnabledNSRoutesRequest) (*pb.FindAllEnabledNSRoutesResponse, error)
- func (this *NSRouteService) FindEnabledNSRoute(ctx context.Context, req *pb.FindEnabledNSRouteRequest) (*pb.FindEnabledNSRouteResponse, error)
- func (this *NSRouteService) ListNSRoutesAfterVersion(ctx context.Context, req *pb.ListNSRoutesAfterVersionRequest) (*pb.ListNSRoutesAfterVersionResponse, error)
- func (this *NSRouteService) UpdateNSRoute(ctx context.Context, req *pb.UpdateNSRouteRequest) (*pb.RPCSuccess, error)
- func (this *NSRouteService) UpdateNSRouteOrders(ctx context.Context, req *pb.UpdateNSRouteOrdersRequest) (*pb.RPCSuccess, error)
- type NSService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NextCommandRequestId ¶
func NextCommandRequestId() int64
Types ¶
type CommandRequest ¶
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 ¶
func (this *NSAccessLogService) CreateNSAccessLogs(ctx context.Context, req *pb.CreateNSAccessLogsRequest) (*pb.CreateNSAccessLogsResponse, error)
CreateNSAccessLogs 创建访问日志
func (*NSAccessLogService) FindNSAccessLog ¶
func (this *NSAccessLogService) FindNSAccessLog(ctx context.Context, req *pb.FindNSAccessLogRequest) (*pb.FindNSAccessLogResponse, error)
FindNSAccessLog 查找单个日志
func (*NSAccessLogService) ListNSAccessLogs ¶
func (this *NSAccessLogService) ListNSAccessLogs(ctx context.Context, req *pb.ListNSAccessLogsRequest) (*pb.ListNSAccessLogsResponse, error)
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 ¶
func (this *NSClusterService) CreateNSCluster(ctx context.Context, req *pb.CreateNSClusterRequest) (*pb.CreateNSClusterResponse, error)
CreateNSCluster 创建集群
func (*NSClusterService) DeleteNSCluster ¶
func (this *NSClusterService) DeleteNSCluster(ctx context.Context, req *pb.DeleteNSCluster) (*pb.RPCSuccess, error)
DeleteNSCluster 删除集群
func (*NSClusterService) FindAllEnabledNSClusters ¶
func (this *NSClusterService) FindAllEnabledNSClusters(ctx context.Context, req *pb.FindAllEnabledNSClustersRequest) (*pb.FindAllEnabledNSClustersResponse, error)
FindAllEnabledNSClusters 查找所有可用集群
func (*NSClusterService) FindEnabledNSCluster ¶
func (this *NSClusterService) FindEnabledNSCluster(ctx context.Context, req *pb.FindEnabledNSClusterRequest) (*pb.FindEnabledNSClusterResponse, error)
FindEnabledNSCluster 查找单个可用集群信息
func (*NSClusterService) FindNSClusterAccessLog ¶
func (this *NSClusterService) FindNSClusterAccessLog(ctx context.Context, req *pb.FindNSClusterAccessLogRequest) (*pb.FindNSClusterAccessLogResponse, error)
FindNSClusterAccessLog 查找集群访问日志配置
func (*NSClusterService) FindNSClusterRecursionConfig ¶
func (this *NSClusterService) FindNSClusterRecursionConfig(ctx context.Context, req *pb.FindNSClusterRecursionConfigRequest) (*pb.FindNSClusterRecursionConfigResponse, error)
FindNSClusterRecursionConfig 读取递归DNS配置
func (*NSClusterService) ListEnabledNSClusters ¶
func (this *NSClusterService) ListEnabledNSClusters(ctx context.Context, req *pb.ListEnabledNSClustersRequest) (*pb.ListEnabledNSClustersResponse, error)
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 ¶
func (this *NSDomainService) CreateNSDomain(ctx context.Context, req *pb.CreateNSDomainRequest) (*pb.CreateNSDomainResponse, error)
CreateNSDomain 创建域名
func (*NSDomainService) DeleteNSDomain ¶
func (this *NSDomainService) DeleteNSDomain(ctx context.Context, req *pb.DeleteNSDomainRequest) (*pb.RPCSuccess, error)
DeleteNSDomain 删除域名
func (*NSDomainService) FindEnabledNSDomain ¶
func (this *NSDomainService) FindEnabledNSDomain(ctx context.Context, req *pb.FindEnabledNSDomainRequest) (*pb.FindEnabledNSDomainResponse, error)
FindEnabledNSDomain 查找单个域名
func (*NSDomainService) FindEnabledNSDomainTSIG ¶
func (this *NSDomainService) FindEnabledNSDomainTSIG(ctx context.Context, req *pb.FindEnabledNSDomainTSIGRequest) (*pb.FindEnabledNSDomainTSIGResponse, error)
FindEnabledNSDomainTSIG 查找TSIG配置
func (*NSDomainService) ListEnabledNSDomains ¶
func (this *NSDomainService) ListEnabledNSDomains(ctx context.Context, req *pb.ListEnabledNSDomainsRequest) (*pb.ListEnabledNSDomainsResponse, error)
ListEnabledNSDomains 列出单页域名
func (*NSDomainService) ListNSDomainsAfterVersion ¶
func (this *NSDomainService) ListNSDomainsAfterVersion(ctx context.Context, req *pb.ListNSDomainsAfterVersionRequest) (*pb.ListNSDomainsAfterVersionResponse, error)
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 ¶
func (this *NSKeyService) FindEnabledNSKey(ctx context.Context, req *pb.FindEnabledNSKeyRequest) (*pb.FindEnabledNSKeyResponse, error)
FindEnabledNSKey 查找单个密钥
func (*NSKeyService) ListEnabledNSKeys ¶
func (this *NSKeyService) ListEnabledNSKeys(ctx context.Context, req *pb.ListEnabledNSKeysRequest) (*pb.ListEnabledNSKeysResponse, error)
ListEnabledNSKeys 列出单页密钥
func (*NSKeyService) ListNSKeysAfterVersion ¶
func (this *NSKeyService) ListNSKeysAfterVersion(ctx context.Context, req *pb.ListNSKeysAfterVersionRequest) (*pb.ListNSKeysAfterVersionResponse, error)
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 ¶
func (this *NSNodeService) CheckNSNodeLatestVersion(ctx context.Context, req *pb.CheckNSNodeLatestVersionRequest) (*pb.CheckNSNodeLatestVersionResponse, error)
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 ¶
func (this *NSNodeService) DownloadNSNodeInstallationFile(ctx context.Context, req *pb.DownloadNSNodeInstallationFileRequest) (*pb.DownloadNSNodeInstallationFileResponse, error)
DownloadNSNodeInstallationFile 下载最新DNS节点安装文件
func (*NSNodeService) FindAllEnabledNSNodesWithNSClusterId ¶
func (this *NSNodeService) FindAllEnabledNSNodesWithNSClusterId(ctx context.Context, req *pb.FindAllEnabledNSNodesWithNSClusterIdRequest) (*pb.FindAllEnabledNSNodesWithNSClusterIdResponse, error)
FindAllEnabledNSNodesWithNSClusterId 根据集群查找所有节点
func (*NSNodeService) FindCurrentNSNodeConfig ¶
func (this *NSNodeService) FindCurrentNSNodeConfig(ctx context.Context, req *pb.FindCurrentNSNodeConfigRequest) (*pb.FindCurrentNSNodeConfigResponse, error)
FindCurrentNSNodeConfig 获取当前节点信息
func (*NSNodeService) FindEnabledNSNode ¶
func (this *NSNodeService) FindEnabledNSNode(ctx context.Context, req *pb.FindEnabledNSNodeRequest) (*pb.FindEnabledNSNodeResponse, error)
FindEnabledNSNode 查询单个节点信息
func (*NSNodeService) FindNSNodeInstallStatus ¶
func (this *NSNodeService) FindNSNodeInstallStatus(ctx context.Context, req *pb.FindNSNodeInstallStatusRequest) (*pb.FindNSNodeInstallStatusResponse, error)
FindNSNodeInstallStatus 读取节点安装状态
func (*NSNodeService) InstallNSNode ¶
func (this *NSNodeService) InstallNSNode(ctx context.Context, req *pb.InstallNSNodeRequest) (*pb.InstallNSNodeResponse, error)
InstallNSNode 安装节点
func (*NSNodeService) ListEnabledNSNodesMatch ¶
func (this *NSNodeService) ListEnabledNSNodesMatch(ctx context.Context, req *pb.ListEnabledNSNodesMatchRequest) (*pb.ListEnabledNSNodesMatchResponse, error)
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 ¶
func (this *NSQuestionOptionService) CreateNSQuestionOption(ctx context.Context, req *pb.CreateNSQuestionOptionRequest) (*pb.CreateNSQuestionOptionResponse, error)
CreateNSQuestionOption 创建选项
func (*NSQuestionOptionService) DeleteNSQuestionOption ¶
func (this *NSQuestionOptionService) DeleteNSQuestionOption(ctx context.Context, req *pb.DeleteNSQuestionOptionRequest) (*pb.RPCSuccess, error)
DeleteNSQuestionOption 删除选项
func (*NSQuestionOptionService) FindNSQuestionOption ¶
func (this *NSQuestionOptionService) FindNSQuestionOption(ctx context.Context, req *pb.FindNSQuestionOptionRequest) (*pb.FindNSQuestionOptionResponse, error)
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 ¶
func (this *NSRecordService) CreateNSRecord(ctx context.Context, req *pb.CreateNSRecordRequest) (*pb.CreateNSRecordResponse, error)
CreateNSRecord 创建记录
func (*NSRecordService) DeleteNSRecord ¶
func (this *NSRecordService) DeleteNSRecord(ctx context.Context, req *pb.DeleteNSRecordRequest) (*pb.RPCSuccess, error)
DeleteNSRecord 删除记录
func (*NSRecordService) FindEnabledNSRecord ¶
func (this *NSRecordService) FindEnabledNSRecord(ctx context.Context, req *pb.FindEnabledNSRecordRequest) (*pb.FindEnabledNSRecordResponse, error)
FindEnabledNSRecord 查询单个记录信息
func (*NSRecordService) ListEnabledNSRecords ¶
func (this *NSRecordService) ListEnabledNSRecords(ctx context.Context, req *pb.ListEnabledNSRecordsRequest) (*pb.ListEnabledNSRecordsResponse, error)
ListEnabledNSRecords 读取单页记录
func (*NSRecordService) ListNSRecordsAfterVersion ¶
func (this *NSRecordService) ListNSRecordsAfterVersion(ctx context.Context, req *pb.ListNSRecordsAfterVersionRequest) (*pb.ListNSRecordsAfterVersionResponse, error)
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 ¶
func (this *NSRouteService) CreateNSRoute(ctx context.Context, req *pb.CreateNSRouteRequest) (*pb.CreateNSRouteResponse, error)
CreateNSRoute 创建线路
func (*NSRouteService) DeleteNSRoute ¶
func (this *NSRouteService) DeleteNSRoute(ctx context.Context, req *pb.DeleteNSRouteRequest) (*pb.RPCSuccess, error)
DeleteNSRoute 删除线路
func (*NSRouteService) FindAllEnabledNSRoutes ¶
func (this *NSRouteService) FindAllEnabledNSRoutes(ctx context.Context, req *pb.FindAllEnabledNSRoutesRequest) (*pb.FindAllEnabledNSRoutesResponse, error)
FindAllEnabledNSRoutes 读取所有线路
func (*NSRouteService) FindEnabledNSRoute ¶
func (this *NSRouteService) FindEnabledNSRoute(ctx context.Context, req *pb.FindEnabledNSRouteRequest) (*pb.FindEnabledNSRouteResponse, error)
FindEnabledNSRoute 获取单个路线信息
func (*NSRouteService) ListNSRoutesAfterVersion ¶
func (this *NSRouteService) ListNSRoutesAfterVersion(ctx context.Context, req *pb.ListNSRoutesAfterVersionRequest) (*pb.ListNSRoutesAfterVersionResponse, error)
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 组合看板数据