services

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: BSD-3-Clause Imports: 64 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NextCommandRequestId

func NextCommandRequestId() int64

func SendCommandToNode

func SendCommandToNode(nodeId int64, requestId int64, messageCode string, dataJSON []byte, timeoutSeconds int32, forceConnecting bool) (result *pb.NodeStreamMessage, err error)

SendCommandToNode 向节点发送命令

func ServerBandwidthCacheKey added in v0.4.9

func ServerBandwidthCacheKey(serverId int64, regionId int64, day string, timeAt string) string

ServerBandwidthCacheKey 组合缓存Key

func ServerBandwidthGetCacheBytes added in v0.4.9

func ServerBandwidthGetCacheBytes(serverId int64, timeAt string) int64

Types

type ACMEAuthenticationService

type ACMEAuthenticationService struct {
	BaseService
}

ACME认证相关

func (*ACMEAuthenticationService) FindACMEAuthenticationKeyWithToken

获取Key

type ACMEProviderAccountService

type ACMEProviderAccountService struct {
	BaseService
}

ACMEProviderAccountService ACME服务商账号服务

func (*ACMEProviderAccountService) CountAllEnabledACMEProviderAccounts

func (this *ACMEProviderAccountService) CountAllEnabledACMEProviderAccounts(ctx context.Context, req *pb.CountAllEnabledACMEProviderAccountsRequest) (*pb.RPCCountResponse, error)

CountAllEnabledACMEProviderAccounts 计算所有服务商账号数量

func (*ACMEProviderAccountService) CreateACMEProviderAccount

CreateACMEProviderAccount 创建服务商账号

func (*ACMEProviderAccountService) DeleteACMEProviderAccount

func (this *ACMEProviderAccountService) DeleteACMEProviderAccount(ctx context.Context, req *pb.DeleteACMEProviderAccountRequest) (*pb.RPCSuccess, error)

DeleteACMEProviderAccount 删除服务商账号

func (*ACMEProviderAccountService) FindAllACMEProviderAccountsWithProviderCode

FindAllACMEProviderAccountsWithProviderCode 使用代号查找服务商账号

func (*ACMEProviderAccountService) FindEnabledACMEProviderAccount

FindEnabledACMEProviderAccount 查找单个服务商账号

func (*ACMEProviderAccountService) ListEnabledACMEProviderAccounts

ListEnabledACMEProviderAccounts 列出单页服务商账号

func (*ACMEProviderAccountService) UpdateACMEProviderAccount

func (this *ACMEProviderAccountService) UpdateACMEProviderAccount(ctx context.Context, req *pb.UpdateACMEProviderAccountRequest) (*pb.RPCSuccess, error)

UpdateACMEProviderAccount 修改服务商账号

type ACMEProviderService

type ACMEProviderService struct {
	BaseService
}

ACMEProviderService ACME服务商

func (*ACMEProviderService) FindACMEProviderWithCode

FindACMEProviderWithCode 根据代号查找服务商

func (*ACMEProviderService) FindAllACMEProviders

FindAllACMEProviders 查找所有的服务商

type ACMETaskService

type ACMETaskService struct {
	BaseService
}

ACMETaskService ACME任务相关服务

func (*ACMETaskService) CountAllEnabledACMETasks

func (this *ACMETaskService) CountAllEnabledACMETasks(ctx context.Context, req *pb.CountAllEnabledACMETasksRequest) (*pb.RPCCountResponse, error)

CountAllEnabledACMETasks 计算所有任务数量

func (*ACMETaskService) CountAllEnabledACMETasksWithACMEUserId

func (this *ACMETaskService) CountAllEnabledACMETasksWithACMEUserId(ctx context.Context, req *pb.CountAllEnabledACMETasksWithACMEUserIdRequest) (*pb.RPCCountResponse, error)

CountAllEnabledACMETasksWithACMEUserId 计算某个ACME用户相关的任务数量

func (*ACMETaskService) CountEnabledACMETasksWithDNSProviderId

func (this *ACMETaskService) CountEnabledACMETasksWithDNSProviderId(ctx context.Context, req *pb.CountEnabledACMETasksWithDNSProviderIdRequest) (*pb.RPCCountResponse, error)

CountEnabledACMETasksWithDNSProviderId 计算跟某个DNS服务商相关的任务数量

func (*ACMETaskService) CreateACMETask

CreateACMETask 创建任务

func (*ACMETaskService) DeleteACMETask

func (this *ACMETaskService) DeleteACMETask(ctx context.Context, req *pb.DeleteACMETaskRequest) (*pb.RPCSuccess, error)

DeleteACMETask 删除任务

func (*ACMETaskService) FindEnabledACMETask

FindEnabledACMETask 查找单个任务信息

func (*ACMETaskService) ListEnabledACMETasks

ListEnabledACMETasks 列出单页任务

func (*ACMETaskService) RunACMETask

RunACMETask 运行某个任务

func (*ACMETaskService) UpdateACMETask

func (this *ACMETaskService) UpdateACMETask(ctx context.Context, req *pb.UpdateACMETaskRequest) (*pb.RPCSuccess, error)

UpdateACMETask 修改任务

type ACMEUserService

type ACMEUserService struct {
	BaseService
}

ACMEUserService 用户服务

func (*ACMEUserService) CountACMEUsers

func (this *ACMEUserService) CountACMEUsers(ctx context.Context, req *pb.CountAcmeUsersRequest) (*pb.RPCCountResponse, error)

CountACMEUsers 计算用户数量

func (*ACMEUserService) CreateACMEUser

CreateACMEUser 创建用户

func (*ACMEUserService) DeleteACMEUser

func (this *ACMEUserService) DeleteACMEUser(ctx context.Context, req *pb.DeleteACMEUserRequest) (*pb.RPCSuccess, error)

DeleteACMEUser 删除用户

func (*ACMEUserService) FindAllACMEUsers

FindAllACMEUsers 查找所有用户

func (*ACMEUserService) FindEnabledACMEUser

FindEnabledACMEUser 查找单个用户

func (*ACMEUserService) ListACMEUsers

ListACMEUsers 列出单页用户

func (*ACMEUserService) UpdateACMEUser

func (this *ACMEUserService) UpdateACMEUser(ctx context.Context, req *pb.UpdateACMEUserRequest) (*pb.RPCSuccess, error)

UpdateACMEUser 修改用户

type APIAccessTokenService

type APIAccessTokenService struct {
	BaseService
}

APIAccessTokenService AccessToken相关服务

func (*APIAccessTokenService) GetAPIAccessToken

GetAPIAccessToken 获取AccessToken

type APIMethodStatService

type APIMethodStatService struct {
	BaseService
}

APIMethodStatService API方法统计服务

func (*APIMethodStatService) CountAPIMethodStatsWithDay

func (this *APIMethodStatService) CountAPIMethodStatsWithDay(ctx context.Context, req *pb.CountAPIMethodStatsWithDayRequest) (*pb.RPCCountResponse, error)

CountAPIMethodStatsWithDay 检查是否有统计数据

func (*APIMethodStatService) FindAPIMethodStatsWithDay

FindAPIMethodStatsWithDay 查找某天的统计

type APINodeService

type APINodeService struct {
	BaseService
}

func (*APINodeService) CountAllEnabledAPINodes

func (this *APINodeService) CountAllEnabledAPINodes(ctx context.Context, req *pb.CountAllEnabledAPINodesRequest) (*pb.RPCCountResponse, error)

CountAllEnabledAPINodes 计算API节点数量

func (*APINodeService) CountAllEnabledAPINodesWithSSLCertId

func (this *APINodeService) CountAllEnabledAPINodesWithSSLCertId(ctx context.Context, req *pb.CountAllEnabledAPINodesWithSSLCertIdRequest) (*pb.RPCCountResponse, error)

CountAllEnabledAPINodesWithSSLCertId 计算使用某个SSL证书的API节点数量

func (*APINodeService) CountAllEnabledAndOnAPINodes

func (this *APINodeService) CountAllEnabledAndOnAPINodes(ctx context.Context, req *pb.CountAllEnabledAndOnAPINodesRequest) (*pb.RPCCountResponse, error)

CountAllEnabledAndOnAPINodes 计算API节点数量

func (*APINodeService) CreateAPINode

CreateAPINode 创建API节点

func (*APINodeService) DebugAPINode

func (this *APINodeService) DebugAPINode(ctx context.Context, req *pb.DebugAPINodeRequest) (*pb.RPCSuccess, error)

DebugAPINode 修改调试模式状态

func (*APINodeService) DeleteAPINode

func (this *APINodeService) DeleteAPINode(ctx context.Context, req *pb.DeleteAPINodeRequest) (*pb.RPCSuccess, error)

DeleteAPINode 删除API节点

func (*APINodeService) FindAllEnabledAPINodes

FindAllEnabledAPINodes 列出所有可用API节点

func (*APINodeService) FindCurrentAPINode

FindCurrentAPINode 获取当前API节点的信息

func (*APINodeService) FindCurrentAPINodeVersion

FindCurrentAPINodeVersion 获取当前API节点的版本

func (*APINodeService) FindEnabledAPINode

FindEnabledAPINode 根据ID查找节点

func (*APINodeService) ListEnabledAPINodes

ListEnabledAPINodes 列出单页的API节点

func (*APINodeService) UpdateAPINode

func (this *APINodeService) UpdateAPINode(ctx context.Context, req *pb.UpdateAPINodeRequest) (*pb.RPCSuccess, error)

UpdateAPINode 修改API节点

type APITokenService

type APITokenService struct {
	BaseService
}

APITokenService API令牌服务

func (*APITokenService) FindAllEnabledAPITokens

FindAllEnabledAPITokens 获取API令牌

type AdminService

type AdminService struct {
	BaseService
	// contains filtered or unexported fields
}

AdminService 管理员相关服务

func (*AdminService) CheckAdminExists

CheckAdminExists 检查管理员是否存在

func (*AdminService) CheckAdminOTPWithUsername

CheckAdminOTPWithUsername 检查是否需要输入OTP

func (*AdminService) CheckAdminUsername

CheckAdminUsername 检查用户名是否存在

func (*AdminService) ComposeAdminDashboard

ComposeAdminDashboard 取得管理员Dashboard数据

func (*AdminService) CountAllEnabledAdmins

func (this *AdminService) CountAllEnabledAdmins(ctx context.Context, req *pb.CountAllEnabledAdminsRequest) (*pb.RPCCountResponse, error)

CountAllEnabledAdmins 计算管理员数量

func (*AdminService) CreateAdmin

func (this *AdminService) CreateAdmin(ctx context.Context, req *pb.CreateAdminRequest) (*pb.CreateAdminResponse, error)

CreateAdmin 创建管理员

func (*AdminService) CreateOrUpdateAdmin

CreateOrUpdateAdmin 创建或修改管理员

func (*AdminService) DeleteAdmin

func (this *AdminService) DeleteAdmin(ctx context.Context, req *pb.DeleteAdminRequest) (*pb.RPCSuccess, error)

DeleteAdmin 删除管理员

func (*AdminService) FindAdminFullname

FindAdminFullname 获取管理员名称

func (*AdminService) FindAllAdminModules

FindAllAdminModules 获取所有管理员的权限列表

func (*AdminService) FindEnabledAdmin

FindEnabledAdmin 获取管理员信息

func (*AdminService) ListEnabledAdmins

ListEnabledAdmins 列出单页的管理员

func (*AdminService) LoginAdmin

func (this *AdminService) LoginAdmin(ctx context.Context, req *pb.LoginAdminRequest) (*pb.LoginAdminResponse, error)

LoginAdmin 登录

func (*AdminService) UpdateAdmin

func (this *AdminService) UpdateAdmin(ctx context.Context, req *pb.UpdateAdminRequest) (*pb.RPCSuccess, error)

UpdateAdmin 修改管理员

func (*AdminService) UpdateAdminInfo

func (this *AdminService) UpdateAdminInfo(ctx context.Context, req *pb.UpdateAdminInfoRequest) (*pb.RPCSuccess, error)

UpdateAdminInfo 修改管理员信息

func (*AdminService) UpdateAdminLogin

func (this *AdminService) UpdateAdminLogin(ctx context.Context, req *pb.UpdateAdminLoginRequest) (*pb.RPCSuccess, error)

UpdateAdminLogin 修改管理员登录信息

func (*AdminService) UpdateAdminTheme

func (this *AdminService) UpdateAdminTheme(ctx context.Context, req *pb.UpdateAdminThemeRequest) (*pb.RPCSuccess, error)

UpdateAdminTheme 修改管理员使用的界面风格

type AuthorityNodeService

type AuthorityNodeService struct {
	BaseService
}

func (*AuthorityNodeService) CountAllEnabledAuthorityNodes

func (this *AuthorityNodeService) CountAllEnabledAuthorityNodes(ctx context.Context, req *pb.CountAllEnabledAuthorityNodesRequest) (*pb.RPCCountResponse, error)

CountAllEnabledAuthorityNodes 计算认证节点数量

func (*AuthorityNodeService) CreateAuthorityNode

CreateAuthorityNode 创建认证节点

func (*AuthorityNodeService) DeleteAuthorityNode

func (this *AuthorityNodeService) DeleteAuthorityNode(ctx context.Context, req *pb.DeleteAuthorityNodeRequest) (*pb.RPCSuccess, error)

DeleteAuthorityNode 删除认证节点

func (*AuthorityNodeService) FindAllEnabledAuthorityNodes

FindAllEnabledAuthorityNodes 列出所有可用认证节点

func (*AuthorityNodeService) FindCurrentAuthorityNode

FindCurrentAuthorityNode 获取当前认证节点的版本

func (*AuthorityNodeService) FindEnabledAuthorityNode

FindEnabledAuthorityNode 根据ID查找节点

func (*AuthorityNodeService) ListEnabledAuthorityNodes

ListEnabledAuthorityNodes 列出单页的认证节点

func (*AuthorityNodeService) UpdateAuthorityNode

func (this *AuthorityNodeService) UpdateAuthorityNode(ctx context.Context, req *pb.UpdateAuthorityNodeRequest) (*pb.RPCSuccess, error)

UpdateAuthorityNode 修改认证节点

func (*AuthorityNodeService) UpdateAuthorityNodeStatus

func (this *AuthorityNodeService) UpdateAuthorityNodeStatus(ctx context.Context, req *pb.UpdateAuthorityNodeStatusRequest) (*pb.RPCSuccess, error)

UpdateAuthorityNodeStatus 更新节点状态

type BaseService

type BaseService struct {
}

func (*BaseService) BeginTag

func (this *BaseService) BeginTag(ctx context.Context, name string)

BeginTag 开始标签统计

func (*BaseService) EndTag

func (this *BaseService) EndTag(ctx context.Context, name string)

EndTag 结束标签统计

func (*BaseService) Exists

func (this *BaseService) Exists(b bool) (*pb.RPCExists, error)

Exists 返回是否存在

func (*BaseService) NotImplementedYet added in v0.5.6

func (this *BaseService) NotImplementedYet() error

func (*BaseService) NullTx

func (this *BaseService) NullTx() *dbs.Tx

NullTx 空的数据库事务

func (*BaseService) PermissionError

func (this *BaseService) PermissionError() error

PermissionError 返回权限错误

func (*BaseService) RunTx

func (this *BaseService) RunTx(callback func(tx *dbs.Tx) error) error

RunTx 在当前数据中执行一个事务

func (*BaseService) Success

func (this *BaseService) Success() (*pb.RPCSuccess, error)

Success 返回成功

func (*BaseService) SuccessCount

func (this *BaseService) SuccessCount(count int64) (*pb.RPCCountResponse, error)

SuccessCount 返回数字

func (*BaseService) ValidateAdmin

func (this *BaseService) ValidateAdmin(ctx context.Context) (adminId int64, err error)

ValidateAdmin 校验管理员

func (*BaseService) ValidateAdminAndUser

func (this *BaseService) ValidateAdminAndUser(ctx context.Context, canRest bool) (adminId int64, userId int64, err error)

ValidateAdminAndUser 校验管理员和用户

func (*BaseService) ValidateAuthorityNode

func (this *BaseService) ValidateAuthorityNode(ctx context.Context) (nodeId int64, err error)

ValidateAuthorityNode 校验认证节点

func (*BaseService) ValidateMonitorNode

func (this *BaseService) ValidateMonitorNode(ctx context.Context) (nodeId int64, err error)

ValidateMonitorNode 校验监控节点

func (*BaseService) ValidateNSNode

func (this *BaseService) ValidateNSNode(ctx context.Context) (nodeId int64, err error)

ValidateNSNode 校验DNS节点

func (*BaseService) ValidateNode

func (this *BaseService) ValidateNode(ctx context.Context) (nodeId int64, err error)

ValidateNode 校验边缘节点

func (*BaseService) ValidateNodeId

func (this *BaseService) ValidateNodeId(ctx context.Context, roles ...rpcutils.UserType) (role rpcutils.UserType, nodeIntId int64, err error)

ValidateNodeId 获取节点ID

func (*BaseService) ValidateUserNode

func (this *BaseService) ValidateUserNode(ctx context.Context, canRest bool) (userId int64, err error)

ValidateUserNode 校验用户节点

type CommandRequest

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

CommandRequest 命令请求相关

type CommandRequestWaiting

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

func (*CommandRequestWaiting) Close

func (this *CommandRequestWaiting) Close()

type DBNodeService

type DBNodeService struct {
	BaseService
}

DBNodeService 数据库节点相关服务

func (*DBNodeService) CheckDBNodeStatus

CheckDBNodeStatus 检查数据库节点状态

func (*DBNodeService) CountAllEnabledDBNodes

func (this *DBNodeService) CountAllEnabledDBNodes(ctx context.Context, req *pb.CountAllEnabledDBNodesRequest) (*pb.RPCCountResponse, error)

CountAllEnabledDBNodes 计算可用的数据库节点数量

func (*DBNodeService) CreateDBNode

func (this *DBNodeService) CreateDBNode(ctx context.Context, req *pb.CreateDBNodeRequest) (*pb.CreateDBNodeResponse, error)

CreateDBNode 创建数据库节点

func (*DBNodeService) DeleteDBNode

func (this *DBNodeService) DeleteDBNode(ctx context.Context, req *pb.DeleteDBNodeRequest) (*pb.RPCSuccess, error)

DeleteDBNode 删除节点

func (*DBNodeService) DeleteDBNodeTable

func (this *DBNodeService) DeleteDBNodeTable(ctx context.Context, req *pb.DeleteDBNodeTableRequest) (*pb.RPCSuccess, error)

DeleteDBNodeTable 删除表

func (*DBNodeService) FindAllDBNodeTables

FindAllDBNodeTables 获取所有表信息

func (*DBNodeService) FindEnabledDBNode

FindEnabledDBNode 根据ID查找可用的数据库节点

func (*DBNodeService) ListEnabledDBNodes

ListEnabledDBNodes 列出单页的数据库节点

func (*DBNodeService) TruncateDBNodeTable

func (this *DBNodeService) TruncateDBNodeTable(ctx context.Context, req *pb.TruncateDBNodeTableRequest) (*pb.RPCSuccess, error)

TruncateDBNodeTable 清空表

func (*DBNodeService) UpdateDBNode

func (this *DBNodeService) UpdateDBNode(ctx context.Context, req *pb.UpdateDBNodeRequest) (*pb.RPCSuccess, error)

UpdateDBNode 修改数据库节点

type DBService

type DBService struct {
	BaseService
}

DBService 数据库相关服务

func (*DBService) DeleteDBTable

func (this *DBService) DeleteDBTable(ctx context.Context, req *pb.DeleteDBTableRequest) (*pb.RPCSuccess, error)

DeleteDBTable 删除表

func (*DBService) FindAllDBTables

func (this *DBService) FindAllDBTables(ctx context.Context, req *pb.FindAllDBTablesRequest) (*pb.FindAllDBTablesResponse, error)

FindAllDBTables 获取所有表信息

func (*DBService) TruncateDBTable

func (this *DBService) TruncateDBTable(ctx context.Context, req *pb.TruncateDBTableRequest) (*pb.RPCSuccess, error)

TruncateDBTable 清空表

type DNSDomainService

type DNSDomainService struct {
	BaseService
}

DNSDomainService DNS域名相关服务

func (*DNSDomainService) CountAllDNSDomainsWithDNSProviderId added in v0.5.3

func (this *DNSDomainService) CountAllDNSDomainsWithDNSProviderId(ctx context.Context, req *pb.CountAllDNSDomainsWithDNSProviderIdRequest) (*pb.RPCCountResponse, error)

CountAllDNSDomainsWithDNSProviderId 计算服务商下的域名数量

func (*DNSDomainService) CreateDNSDomain

CreateDNSDomain 创建域名

func (*DNSDomainService) DeleteDNSDomain

func (this *DNSDomainService) DeleteDNSDomain(ctx context.Context, req *pb.DeleteDNSDomainRequest) (*pb.RPCSuccess, error)

DeleteDNSDomain 删除域名

func (*DNSDomainService) ExistAvailableDomains

ExistAvailableDomains 判断是否有域名可选

func (*DNSDomainService) ExistDNSDomainRecord

ExistDNSDomainRecord 检查域名是否在记录中

func (*DNSDomainService) FindAllBasicDNSDomainsWithDNSProviderId added in v0.5.3

FindAllBasicDNSDomainsWithDNSProviderId 列出服务商下的所有域名基本信息

func (*DNSDomainService) FindAllDNSDomainRoutes

FindAllDNSDomainRoutes 查看支持的线路

func (*DNSDomainService) FindAllDNSDomainsWithDNSProviderId added in v0.5.3

FindAllDNSDomainsWithDNSProviderId 列出服务商下的所有域名

func (*DNSDomainService) FindBasicDNSDomain added in v0.5.3

FindBasicDNSDomain 查询单个域名基础信息

func (*DNSDomainService) FindDNSDomain added in v0.5.3

FindDNSDomain 查询单个域名完整信息

func (*DNSDomainService) ListBasicDNSDomainsWithDNSProviderId added in v0.5.3

ListBasicDNSDomainsWithDNSProviderId 列出服务商下的单页域名信息

func (*DNSDomainService) RecoverDNSDomain

func (this *DNSDomainService) RecoverDNSDomain(ctx context.Context, req *pb.RecoverDNSDomainRequest) (*pb.RPCSuccess, error)

RecoverDNSDomain 恢复删除的域名

func (*DNSDomainService) SyncDNSDomainData

SyncDNSDomainData 同步域名数据

func (*DNSDomainService) SyncDNSDomainsFromProvider

SyncDNSDomainsFromProvider 从服务商同步域名

func (*DNSDomainService) UpdateDNSDomain

func (this *DNSDomainService) UpdateDNSDomain(ctx context.Context, req *pb.UpdateDNSDomainRequest) (*pb.RPCSuccess, error)

UpdateDNSDomain 修改域名

type DNSProviderService

type DNSProviderService struct {
	BaseService
}

DNSProviderService DNS服务商相关服务

func (*DNSProviderService) CountAllEnabledDNSProviders

func (this *DNSProviderService) CountAllEnabledDNSProviders(ctx context.Context, req *pb.CountAllEnabledDNSProvidersRequest) (*pb.RPCCountResponse, error)

CountAllEnabledDNSProviders 计算服务商数量

func (*DNSProviderService) CreateDNSProvider

CreateDNSProvider 创建服务商

func (*DNSProviderService) DeleteDNSProvider

func (this *DNSProviderService) DeleteDNSProvider(ctx context.Context, req *pb.DeleteDNSProviderRequest) (*pb.RPCSuccess, error)

DeleteDNSProvider 删除服务商

func (*DNSProviderService) FindAllDNSProviderTypes

FindAllDNSProviderTypes 取得所有服务商类型

func (*DNSProviderService) FindAllEnabledDNSProviders

FindAllEnabledDNSProviders 查找所有的DNS服务商

func (*DNSProviderService) FindAllEnabledDNSProvidersWithType

FindAllEnabledDNSProvidersWithType 取得某个类型的所有服务商

func (*DNSProviderService) FindEnabledDNSProvider

FindEnabledDNSProvider 查找单个服务商

func (*DNSProviderService) ListEnabledDNSProviders

ListEnabledDNSProviders 列出单页服务商信息

func (*DNSProviderService) UpdateDNSProvider

func (this *DNSProviderService) UpdateDNSProvider(ctx context.Context, req *pb.UpdateDNSProviderRequest) (*pb.RPCSuccess, error)

UpdateDNSProvider 修改服务商

type DNSService

type DNSService struct {
	BaseService
}

DNSService DNS相关服务

func (*DNSService) FindAllDNSIssues

func (this *DNSService) FindAllDNSIssues(ctx context.Context, req *pb.FindAllDNSIssuesRequest) (*pb.FindAllDNSIssuesResponse, error)

FindAllDNSIssues 查找问题

type DNSTaskService

type DNSTaskService struct {
	BaseService
}

DNSTaskService DNS同步相关任务

func (*DNSTaskService) DeleteDNSTask

func (this *DNSTaskService) DeleteDNSTask(ctx context.Context, req *pb.DeleteDNSTaskRequest) (*pb.RPCSuccess, error)

DeleteDNSTask 删除任务

func (*DNSTaskService) ExistsDNSTasks

ExistsDNSTasks 检查是否有正在执行的任务

func (*DNSTaskService) FindAllDoingDNSTasks

FindAllDoingDNSTasks 查找正在执行的所有任务

type FileChunkService

type FileChunkService struct {
	BaseService
}

FileChunkService 文件片段相关服务

func (*FileChunkService) CreateFileChunk

CreateFileChunk 创建文件片段

func (*FileChunkService) DownloadFileChunk

DownloadFileChunk 下载文件片段

func (*FileChunkService) FindAllFileChunkIds

FindAllFileChunkIds 获取的一个文件的所有片段IDs

type FileService

type FileService struct {
	BaseService
}

FileService 文件相关服务

func (*FileService) CreateFile

func (this *FileService) CreateFile(ctx context.Context, req *pb.CreateFileRequest) (*pb.CreateFileResponse, error)

CreateFile 创建文件

func (*FileService) FindEnabledFile

func (this *FileService) FindEnabledFile(ctx context.Context, req *pb.FindEnabledFileRequest) (*pb.FindEnabledFileResponse, error)

FindEnabledFile 查找文件

func (*FileService) UpdateFileFinished

func (this *FileService) UpdateFileFinished(ctx context.Context, req *pb.UpdateFileFinishedRequest) (*pb.RPCSuccess, error)

UpdateFileFinished 将文件置为已完成

type FirewallService

type FirewallService struct {
	BaseService
}

FirewallService 防火墙全局服务

func (*FirewallService) ComposeFirewallGlobalBoard

ComposeFirewallGlobalBoard 组合看板数据

func (*FirewallService) CountFirewallDailyBlocks

CountFirewallDailyBlocks 读取当前Block动作次数

func (*FirewallService) NotifyHTTPFirewallEvent

func (this *FirewallService) NotifyHTTPFirewallEvent(ctx context.Context, req *pb.NotifyHTTPFirewallEventRequest) (*pb.RPCSuccess, error)

NotifyHTTPFirewallEvent 发送告警(notify)消息

type FormalClientBrowserService added in v0.5.8

type FormalClientBrowserService struct {
	BaseService
}

FormalClientBrowserService 浏览器信息库服务

func (*FormalClientBrowserService) CountFormalClientBrowsers added in v0.5.8

CountFormalClientBrowsers 计算浏览器信息数量

func (*FormalClientBrowserService) CreateFormalClientBrowser added in v0.5.8

CreateFormalClientBrowser 创建浏览器信息

func (*FormalClientBrowserService) FindFormalClientBrowserWithDataId added in v0.5.8

FindFormalClientBrowserWithDataId 通过dataId查询浏览器信息

func (*FormalClientBrowserService) ListFormalClientBrowsers added in v0.5.8

ListFormalClientBrowsers 列出单页浏览器信息

func (*FormalClientBrowserService) UpdateFormalClientBrowser added in v0.5.8

func (this *FormalClientBrowserService) UpdateFormalClientBrowser(ctx context.Context, req *pb.UpdateFormalClientBrowserRequest) (*pb.RPCSuccess, error)

UpdateFormalClientBrowser 修改浏览器信息

type FormalClientSystemService added in v0.5.8

type FormalClientSystemService struct {
	BaseService
}

FormalClientSystemService 操作系统信息库服务

func (*FormalClientSystemService) CountFormalClientSystems added in v0.5.8

CountFormalClientSystems 计算操作系统信息数量

func (*FormalClientSystemService) CreateFormalClientSystem added in v0.5.8

CreateFormalClientSystem 创建操作系统信息

func (*FormalClientSystemService) FindFormalClientSystemWithDataId added in v0.5.8

FindFormalClientSystemWithDataId 通过dataId查询操作系统信息

func (*FormalClientSystemService) ListFormalClientSystems added in v0.5.8

ListFormalClientSystems 列出单页操作系统信息

func (*FormalClientSystemService) UpdateFormalClientSystem added in v0.5.8

func (this *FormalClientSystemService) UpdateFormalClientSystem(ctx context.Context, req *pb.UpdateFormalClientSystemRequest) (*pb.RPCSuccess, error)

UpdateFormalClientSystem 修改操作系统信息

type HTTPAccessLogService

type HTTPAccessLogService struct {
	BaseService
}

HTTPAccessLogService 访问日志相关服务

func (*HTTPAccessLogService) CreateHTTPAccessLogs

CreateHTTPAccessLogs 创建访问日志

func (*HTTPAccessLogService) FindHTTPAccessLog

FindHTTPAccessLog 查找单个日志

func (*HTTPAccessLogService) FindHTTPAccessLogPartitions

FindHTTPAccessLogPartitions 查找日志分区

func (*HTTPAccessLogService) ListHTTPAccessLogs

ListHTTPAccessLogs 列出单页访问日志

type HTTPAuthPolicyService

type HTTPAuthPolicyService struct {
	BaseService
}

HTTPAuthPolicyService 服务认证策略服务

func (*HTTPAuthPolicyService) CreateHTTPAuthPolicy

CreateHTTPAuthPolicy 创建策略

func (*HTTPAuthPolicyService) FindEnabledHTTPAuthPolicy

FindEnabledHTTPAuthPolicy 查找策略信息

func (*HTTPAuthPolicyService) UpdateHTTPAuthPolicy

func (this *HTTPAuthPolicyService) UpdateHTTPAuthPolicy(ctx context.Context, req *pb.UpdateHTTPAuthPolicyRequest) (*pb.RPCSuccess, error)

UpdateHTTPAuthPolicy 修改策略

type HTTPCachePolicyService

type HTTPCachePolicyService struct {
	BaseService
}

func (*HTTPCachePolicyService) CountAllEnabledHTTPCachePolicies

func (this *HTTPCachePolicyService) CountAllEnabledHTTPCachePolicies(ctx context.Context, req *pb.CountAllEnabledHTTPCachePoliciesRequest) (*pb.RPCCountResponse, error)

CountAllEnabledHTTPCachePolicies 计算缓存策略数量

func (*HTTPCachePolicyService) CreateHTTPCachePolicy

CreateHTTPCachePolicy 创建缓存策略

func (*HTTPCachePolicyService) DeleteHTTPCachePolicy

func (this *HTTPCachePolicyService) DeleteHTTPCachePolicy(ctx context.Context, req *pb.DeleteHTTPCachePolicyRequest) (*pb.RPCSuccess, error)

DeleteHTTPCachePolicy 删除缓存策略

func (*HTTPCachePolicyService) FindAllEnabledHTTPCachePolicies

FindAllEnabledHTTPCachePolicies 获取所有可用策略

func (*HTTPCachePolicyService) FindEnabledHTTPCachePolicy

FindEnabledHTTPCachePolicy 查找单个缓存策略信息

func (*HTTPCachePolicyService) FindEnabledHTTPCachePolicyConfig

FindEnabledHTTPCachePolicyConfig 查找单个缓存策略配置

func (*HTTPCachePolicyService) ListEnabledHTTPCachePolicies

ListEnabledHTTPCachePolicies 列出单页的缓存策略

func (*HTTPCachePolicyService) UpdateHTTPCachePolicy

func (this *HTTPCachePolicyService) UpdateHTTPCachePolicy(ctx context.Context, req *pb.UpdateHTTPCachePolicyRequest) (*pb.RPCSuccess, error)

UpdateHTTPCachePolicy 修改缓存策略

func (*HTTPCachePolicyService) UpdateHTTPCachePolicyRefs

func (this *HTTPCachePolicyService) UpdateHTTPCachePolicyRefs(ctx context.Context, req *pb.UpdateHTTPCachePolicyRefsRequest) (*pb.RPCSuccess, error)

UpdateHTTPCachePolicyRefs 设置缓存策略的默认条件

type HTTPCacheTaskKeyService

type HTTPCacheTaskKeyService struct {
	BaseService
}

HTTPCacheTaskKeyService 缓存任务Key管理

func (*HTTPCacheTaskKeyService) FindDoingHTTPCacheTaskKeys

FindDoingHTTPCacheTaskKeys 查找需要执行的Key

func (*HTTPCacheTaskKeyService) UpdateHTTPCacheTaskKeysStatus

func (this *HTTPCacheTaskKeyService) UpdateHTTPCacheTaskKeysStatus(ctx context.Context, req *pb.UpdateHTTPCacheTaskKeysStatusRequest) (*pb.RPCSuccess, error)

UpdateHTTPCacheTaskKeysStatus 更新一组Key状态

func (*HTTPCacheTaskKeyService) ValidateHTTPCacheTaskKeys

ValidateHTTPCacheTaskKeys 校验缓存Key

type HTTPCacheTaskService

type HTTPCacheTaskService struct {
	BaseService
}

HTTPCacheTaskService 缓存任务管理

func (*HTTPCacheTaskService) CountDoingHTTPCacheTasks

func (this *HTTPCacheTaskService) CountDoingHTTPCacheTasks(ctx context.Context, req *pb.CountDoingHTTPCacheTasksRequest) (*pb.RPCCountResponse, error)

CountDoingHTTPCacheTasks 计算正在执行的任务数量

func (*HTTPCacheTaskService) CountHTTPCacheTasks

func (this *HTTPCacheTaskService) CountHTTPCacheTasks(ctx context.Context, req *pb.CountHTTPCacheTasksRequest) (*pb.RPCCountResponse, error)

CountHTTPCacheTasks 计算任务数量

func (*HTTPCacheTaskService) CreateHTTPCacheTask

CreateHTTPCacheTask 创建任务

func (*HTTPCacheTaskService) DeleteHTTPCacheTask

func (this *HTTPCacheTaskService) DeleteHTTPCacheTask(ctx context.Context, req *pb.DeleteHTTPCacheTaskRequest) (*pb.RPCSuccess, error)

DeleteHTTPCacheTask 删除任务

func (*HTTPCacheTaskService) FindEnabledHTTPCacheTask

FindEnabledHTTPCacheTask 查找单个任务

func (*HTTPCacheTaskService) ListHTTPCacheTasks

ListHTTPCacheTasks 列出单页任务

func (*HTTPCacheTaskService) ResetHTTPCacheTask

func (this *HTTPCacheTaskService) ResetHTTPCacheTask(ctx context.Context, req *pb.ResetHTTPCacheTaskRequest) (*pb.RPCSuccess, error)

ResetHTTPCacheTask 重置任务状态 只允许管理员重置,用于调试

type HTTPFastcgiService

type HTTPFastcgiService struct {
	BaseService
}

HTTPFastcgiService HTTP Fastcgi服务

func (*HTTPFastcgiService) CreateHTTPFastcgi

CreateHTTPFastcgi 创建Fastcgi

func (*HTTPFastcgiService) FindEnabledHTTPFastcgi

FindEnabledHTTPFastcgi 获取Fastcgi详情

func (*HTTPFastcgiService) FindEnabledHTTPFastcgiConfig

FindEnabledHTTPFastcgiConfig 获取Fastcgi配置

func (*HTTPFastcgiService) UpdateHTTPFastcgi

func (this *HTTPFastcgiService) UpdateHTTPFastcgi(ctx context.Context, req *pb.UpdateHTTPFastcgiRequest) (*pb.RPCSuccess, error)

UpdateHTTPFastcgi 修改Fastcgi

type HTTPFirewallPolicyService

type HTTPFirewallPolicyService struct {
	BaseService
}

HTTPFirewallPolicyService HTTP防火墙(WAF)相关服务

func (*HTTPFirewallPolicyService) CheckHTTPFirewallPolicyIPStatus

CheckHTTPFirewallPolicyIPStatus 检查IP状态

func (*HTTPFirewallPolicyService) CountAllEnabledHTTPFirewallPolicies

func (this *HTTPFirewallPolicyService) CountAllEnabledHTTPFirewallPolicies(ctx context.Context, req *pb.CountAllEnabledHTTPFirewallPoliciesRequest) (*pb.RPCCountResponse, error)

CountAllEnabledHTTPFirewallPolicies 计算可用的防火墙策略数量

func (*HTTPFirewallPolicyService) CreateEmptyHTTPFirewallPolicy

CreateEmptyHTTPFirewallPolicy 创建空防火墙策略

func (*HTTPFirewallPolicyService) CreateHTTPFirewallPolicy

CreateHTTPFirewallPolicy 创建防火墙策略

func (*HTTPFirewallPolicyService) DeleteHTTPFirewallPolicy

func (this *HTTPFirewallPolicyService) DeleteHTTPFirewallPolicy(ctx context.Context, req *pb.DeleteHTTPFirewallPolicyRequest) (*pb.RPCSuccess, error)

DeleteHTTPFirewallPolicy 删除某个防火墙策略

func (*HTTPFirewallPolicyService) FindAllEnabledHTTPFirewallPolicies

FindAllEnabledHTTPFirewallPolicies 获取所有可用策略

func (*HTTPFirewallPolicyService) FindEnabledHTTPFirewallPolicy

FindEnabledHTTPFirewallPolicy 获取防火墙的基本信息

func (*HTTPFirewallPolicyService) FindEnabledHTTPFirewallPolicyConfig

FindEnabledHTTPFirewallPolicyConfig 查找单个防火墙配置

func (*HTTPFirewallPolicyService) ImportHTTPFirewallPolicy

func (this *HTTPFirewallPolicyService) ImportHTTPFirewallPolicy(ctx context.Context, req *pb.ImportHTTPFirewallPolicyRequest) (*pb.RPCSuccess, error)

ImportHTTPFirewallPolicy 导入策略数据

func (*HTTPFirewallPolicyService) ListEnabledHTTPFirewallPolicies

ListEnabledHTTPFirewallPolicies 列出单页的防火墙策略

func (*HTTPFirewallPolicyService) UpdateHTTPFirewallInboundConfig

func (this *HTTPFirewallPolicyService) UpdateHTTPFirewallInboundConfig(ctx context.Context, req *pb.UpdateHTTPFirewallInboundConfigRequest) (*pb.RPCSuccess, error)

UpdateHTTPFirewallInboundConfig 修改inbound信息

func (*HTTPFirewallPolicyService) UpdateHTTPFirewallPolicy

func (this *HTTPFirewallPolicyService) UpdateHTTPFirewallPolicy(ctx context.Context, req *pb.UpdateHTTPFirewallPolicyRequest) (*pb.RPCSuccess, error)

UpdateHTTPFirewallPolicy 修改防火墙策略

func (*HTTPFirewallPolicyService) UpdateHTTPFirewallPolicyGroups

func (this *HTTPFirewallPolicyService) UpdateHTTPFirewallPolicyGroups(ctx context.Context, req *pb.UpdateHTTPFirewallPolicyGroupsRequest) (*pb.RPCSuccess, error)

UpdateHTTPFirewallPolicyGroups 修改分组信息

type HTTPFirewallRuleGroupService

type HTTPFirewallRuleGroupService struct {
	BaseService
}

HTTPFirewallRuleGroupService WAF规则分组相关服务

func (*HTTPFirewallRuleGroupService) AddHTTPFirewallRuleGroupSet

func (this *HTTPFirewallRuleGroupService) AddHTTPFirewallRuleGroupSet(ctx context.Context, req *pb.AddHTTPFirewallRuleGroupSetRequest) (*pb.RPCSuccess, error)

AddHTTPFirewallRuleGroupSet 添加规则集

func (*HTTPFirewallRuleGroupService) CreateHTTPFirewallRuleGroup

CreateHTTPFirewallRuleGroup 创建分组

func (*HTTPFirewallRuleGroupService) FindEnabledHTTPFirewallRuleGroup

FindEnabledHTTPFirewallRuleGroup 获取分组信息

func (*HTTPFirewallRuleGroupService) FindEnabledHTTPFirewallRuleGroupConfig

FindEnabledHTTPFirewallRuleGroupConfig 获取分组配置

func (*HTTPFirewallRuleGroupService) UpdateHTTPFirewallRuleGroup

func (this *HTTPFirewallRuleGroupService) UpdateHTTPFirewallRuleGroup(ctx context.Context, req *pb.UpdateHTTPFirewallRuleGroupRequest) (*pb.RPCSuccess, error)

UpdateHTTPFirewallRuleGroup 修改分组

func (*HTTPFirewallRuleGroupService) UpdateHTTPFirewallRuleGroupIsOn

func (this *HTTPFirewallRuleGroupService) UpdateHTTPFirewallRuleGroupIsOn(ctx context.Context, req *pb.UpdateHTTPFirewallRuleGroupIsOnRequest) (*pb.RPCSuccess, error)

UpdateHTTPFirewallRuleGroupIsOn 设置是否启用分组

func (*HTTPFirewallRuleGroupService) UpdateHTTPFirewallRuleGroupSets

func (this *HTTPFirewallRuleGroupService) UpdateHTTPFirewallRuleGroupSets(ctx context.Context, req *pb.UpdateHTTPFirewallRuleGroupSetsRequest) (*pb.RPCSuccess, error)

UpdateHTTPFirewallRuleGroupSets 修改分组的规则集

type HTTPFirewallRuleSetService

type HTTPFirewallRuleSetService struct {
	BaseService
}

HTTPFirewallRuleSetService 规则集相关服务

func (*HTTPFirewallRuleSetService) CreateOrUpdateHTTPFirewallRuleSetFromConfig

CreateOrUpdateHTTPFirewallRuleSetFromConfig 根据配置创建规则集

func (*HTTPFirewallRuleSetService) FindEnabledHTTPFirewallRuleSet

FindEnabledHTTPFirewallRuleSet 查找规则集

func (*HTTPFirewallRuleSetService) FindEnabledHTTPFirewallRuleSetConfig

FindEnabledHTTPFirewallRuleSetConfig 查找规则集配置

func (*HTTPFirewallRuleSetService) UpdateHTTPFirewallRuleSetIsOn

func (this *HTTPFirewallRuleSetService) UpdateHTTPFirewallRuleSetIsOn(ctx context.Context, req *pb.UpdateHTTPFirewallRuleSetIsOnRequest) (*pb.RPCSuccess, error)

UpdateHTTPFirewallRuleSetIsOn 修改是否开启

type HTTPGzipService

type HTTPGzipService struct {
	BaseService
}

func (*HTTPGzipService) CreateHTTPGzip

CreateHTTPGzip 创建Gzip配置

func (*HTTPGzipService) FindEnabledHTTPGzipConfig

FindEnabledHTTPGzipConfig 查找Gzip

func (*HTTPGzipService) UpdateHTTPGzip

func (this *HTTPGzipService) UpdateHTTPGzip(ctx context.Context, req *pb.UpdateHTTPGzipRequest) (*pb.RPCSuccess, error)

UpdateHTTPGzip 修改Gzip配置

type HTTPHeaderPolicyService

type HTTPHeaderPolicyService struct {
	BaseService
}

func (*HTTPHeaderPolicyService) CreateHTTPHeaderPolicy

CreateHTTPHeaderPolicy 创建策略

func (*HTTPHeaderPolicyService) FindEnabledHTTPHeaderPolicyConfig

FindEnabledHTTPHeaderPolicyConfig 查找策略配置

func (*HTTPHeaderPolicyService) UpdateHTTPHeaderPolicyAddingHeaders

func (this *HTTPHeaderPolicyService) UpdateHTTPHeaderPolicyAddingHeaders(ctx context.Context, req *pb.UpdateHTTPHeaderPolicyAddingHeadersRequest) (*pb.RPCSuccess, error)

UpdateHTTPHeaderPolicyAddingHeaders 修改AddHeaders

func (*HTTPHeaderPolicyService) UpdateHTTPHeaderPolicyAddingTrailers

func (this *HTTPHeaderPolicyService) UpdateHTTPHeaderPolicyAddingTrailers(ctx context.Context, req *pb.UpdateHTTPHeaderPolicyAddingTrailersRequest) (*pb.RPCSuccess, error)

UpdateHTTPHeaderPolicyAddingTrailers 修改AddTrailers

func (*HTTPHeaderPolicyService) UpdateHTTPHeaderPolicyDeletingHeaders

func (this *HTTPHeaderPolicyService) UpdateHTTPHeaderPolicyDeletingHeaders(ctx context.Context, req *pb.UpdateHTTPHeaderPolicyDeletingHeadersRequest) (*pb.RPCSuccess, error)

UpdateHTTPHeaderPolicyDeletingHeaders 修改删除的Headers

func (*HTTPHeaderPolicyService) UpdateHTTPHeaderPolicyReplacingHeaders

func (this *HTTPHeaderPolicyService) UpdateHTTPHeaderPolicyReplacingHeaders(ctx context.Context, req *pb.UpdateHTTPHeaderPolicyReplacingHeadersRequest) (*pb.RPCSuccess, error)

UpdateHTTPHeaderPolicyReplacingHeaders 修改ReplaceHeaders

func (*HTTPHeaderPolicyService) UpdateHTTPHeaderPolicySettingHeaders

func (this *HTTPHeaderPolicyService) UpdateHTTPHeaderPolicySettingHeaders(ctx context.Context, req *pb.UpdateHTTPHeaderPolicySettingHeadersRequest) (*pb.RPCSuccess, error)

UpdateHTTPHeaderPolicySettingHeaders 修改SetHeaders

type HTTPHeaderService

type HTTPHeaderService struct {
	BaseService
}

func (*HTTPHeaderService) CreateHTTPHeader

CreateHTTPHeader 创建Header

func (*HTTPHeaderService) FindEnabledHTTPHeaderConfig

FindEnabledHTTPHeaderConfig 查找配置

func (*HTTPHeaderService) UpdateHTTPHeader

func (this *HTTPHeaderService) UpdateHTTPHeader(ctx context.Context, req *pb.UpdateHTTPHeaderRequest) (*pb.RPCSuccess, error)

UpdateHTTPHeader 修改Header

type HTTPLocationService

type HTTPLocationService struct {
	BaseService
}

HTTPLocationService 路由规则相关服务

func (*HTTPLocationService) CreateHTTPLocation

CreateHTTPLocation 创建路由规则

func (*HTTPLocationService) DeleteHTTPLocation

func (this *HTTPLocationService) DeleteHTTPLocation(ctx context.Context, req *pb.DeleteHTTPLocationRequest) (*pb.RPCSuccess, error)

DeleteHTTPLocation 删除路由规则

func (*HTTPLocationService) FindAndInitHTTPLocationReverseProxyConfig

FindAndInitHTTPLocationReverseProxyConfig 查找反向代理设置

func (*HTTPLocationService) FindAndInitHTTPLocationWebConfig

FindAndInitHTTPLocationWebConfig 初始化Web设置

func (*HTTPLocationService) FindEnabledHTTPLocationConfig

FindEnabledHTTPLocationConfig 查找路由规则配置

func (*HTTPLocationService) UpdateHTTPLocation

func (this *HTTPLocationService) UpdateHTTPLocation(ctx context.Context, req *pb.UpdateHTTPLocationRequest) (*pb.RPCSuccess, error)

UpdateHTTPLocation 修改路由规则

func (*HTTPLocationService) UpdateHTTPLocationReverseProxy

func (this *HTTPLocationService) UpdateHTTPLocationReverseProxy(ctx context.Context, req *pb.UpdateHTTPLocationReverseProxyRequest) (*pb.RPCSuccess, error)

UpdateHTTPLocationReverseProxy 修改反向代理设置

type HTTPPageService

type HTTPPageService struct {
	BaseService
}

func (*HTTPPageService) CreateHTTPPage

CreateHTTPPage 创建Page

func (*HTTPPageService) FindEnabledHTTPPageConfig

FindEnabledHTTPPageConfig 查找单个Page配置

func (*HTTPPageService) UpdateHTTPPage

func (this *HTTPPageService) UpdateHTTPPage(ctx context.Context, req *pb.UpdateHTTPPageRequest) (*pb.RPCSuccess, error)

UpdateHTTPPage 修改Page

type HTTPRewriteRuleService

type HTTPRewriteRuleService struct {
	BaseService
}

HTTPRewriteRuleService 重写规则相关服务

func (*HTTPRewriteRuleService) CreateHTTPRewriteRule

CreateHTTPRewriteRule 创建重写规则

func (*HTTPRewriteRuleService) UpdateHTTPRewriteRule

func (this *HTTPRewriteRuleService) UpdateHTTPRewriteRule(ctx context.Context, req *pb.UpdateHTTPRewriteRuleRequest) (*pb.RPCSuccess, error)

UpdateHTTPRewriteRule 修改重写规则

type HTTPWebService

type HTTPWebService struct {
	BaseService
}

func (*HTTPWebService) CreateHTTPWeb

CreateHTTPWeb 创建Web配置

func (*HTTPWebService) FindEnabledHTTPWeb

FindEnabledHTTPWeb 查找Web配置

func (*HTTPWebService) FindEnabledHTTPWebConfig

FindEnabledHTTPWebConfig 查找Web配置

func (*HTTPWebService) FindHTTPWebHostRedirects

FindHTTPWebHostRedirects 查找主机跳转设置

func (*HTTPWebService) FindHTTPWebReferers added in v0.5.3

FindHTTPWebReferers 查找防盗链设置

func (*HTTPWebService) FindHTTPWebRequestLimit

FindHTTPWebRequestLimit 查找请求限制

func (*HTTPWebService) FindHTTPWebRequestScripts

FindHTTPWebRequestScripts 查找请求脚本

func (*HTTPWebService) FindHTTPWebUAM

FindHTTPWebUAM 查找UAM设置

func (*HTTPWebService) UpdateHTTPWeb

func (this *HTTPWebService) UpdateHTTPWeb(ctx context.Context, req *pb.UpdateHTTPWebRequest) (*pb.RPCSuccess, error)

UpdateHTTPWeb 修改Web配置

func (*HTTPWebService) UpdateHTTPWebAccessLog

func (this *HTTPWebService) UpdateHTTPWebAccessLog(ctx context.Context, req *pb.UpdateHTTPWebAccessLogRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebAccessLog 更改访问日志配置

func (*HTTPWebService) UpdateHTTPWebAuth

func (this *HTTPWebService) UpdateHTTPWebAuth(ctx context.Context, req *pb.UpdateHTTPWebAuthRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebAuth 更改认证设置

func (*HTTPWebService) UpdateHTTPWebCache

func (this *HTTPWebService) UpdateHTTPWebCache(ctx context.Context, req *pb.UpdateHTTPWebCacheRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebCache 更改缓存配置

func (*HTTPWebService) UpdateHTTPWebCharset

func (this *HTTPWebService) UpdateHTTPWebCharset(ctx context.Context, req *pb.UpdateHTTPWebCharsetRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebCharset 修改字符集配置

func (*HTTPWebService) UpdateHTTPWebCommon

func (this *HTTPWebService) UpdateHTTPWebCommon(ctx context.Context, req *pb.UpdateHTTPWebCommonRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebCommon 更改通用设置

func (*HTTPWebService) UpdateHTTPWebCompression

func (this *HTTPWebService) UpdateHTTPWebCompression(ctx context.Context, req *pb.UpdateHTTPWebCompressionRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebCompression 修改压缩配置

func (*HTTPWebService) UpdateHTTPWebFastcgi

func (this *HTTPWebService) UpdateHTTPWebFastcgi(ctx context.Context, req *pb.UpdateHTTPWebFastcgiRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebFastcgi 更改Fastcgi设置

func (*HTTPWebService) UpdateHTTPWebFirewall

func (this *HTTPWebService) UpdateHTTPWebFirewall(ctx context.Context, req *pb.UpdateHTTPWebFirewallRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebFirewall 更改防火墙设置

func (*HTTPWebService) UpdateHTTPWebHostRedirects

func (this *HTTPWebService) UpdateHTTPWebHostRedirects(ctx context.Context, req *pb.UpdateHTTPWebHostRedirectsRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebHostRedirects 更改主机跳转设置

func (*HTTPWebService) UpdateHTTPWebLocations

func (this *HTTPWebService) UpdateHTTPWebLocations(ctx context.Context, req *pb.UpdateHTTPWebLocationsRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebLocations 更改路由规则设置

func (*HTTPWebService) UpdateHTTPWebPages

func (this *HTTPWebService) UpdateHTTPWebPages(ctx context.Context, req *pb.UpdateHTTPWebPagesRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebPages 更改Pages

func (*HTTPWebService) UpdateHTTPWebRedirectToHTTPS

func (this *HTTPWebService) UpdateHTTPWebRedirectToHTTPS(ctx context.Context, req *pb.UpdateHTTPWebRedirectToHTTPSRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebRedirectToHTTPS 更改跳转到HTTPS设置

func (*HTTPWebService) UpdateHTTPWebReferers added in v0.5.3

func (this *HTTPWebService) UpdateHTTPWebReferers(ctx context.Context, req *pb.UpdateHTTPWebReferersRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebReferers 修改防盗链设置

func (*HTTPWebService) UpdateHTTPWebRemoteAddr

func (this *HTTPWebService) UpdateHTTPWebRemoteAddr(ctx context.Context, req *pb.UpdateHTTPWebRemoteAddrRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebRemoteAddr 更改RemoteAddr配置

func (*HTTPWebService) UpdateHTTPWebRequestHeader

func (this *HTTPWebService) UpdateHTTPWebRequestHeader(ctx context.Context, req *pb.UpdateHTTPWebRequestHeaderRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebRequestHeader 更改请求Header策略

func (*HTTPWebService) UpdateHTTPWebRequestLimit

func (this *HTTPWebService) UpdateHTTPWebRequestLimit(ctx context.Context, req *pb.UpdateHTTPWebRequestLimitRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebRequestLimit 修改请求限制

func (*HTTPWebService) UpdateHTTPWebRequestScripts

func (this *HTTPWebService) UpdateHTTPWebRequestScripts(ctx context.Context, req *pb.UpdateHTTPWebRequestScriptsRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebRequestScripts 修改请求脚本

func (*HTTPWebService) UpdateHTTPWebResponseHeader

func (this *HTTPWebService) UpdateHTTPWebResponseHeader(ctx context.Context, req *pb.UpdateHTTPWebResponseHeaderRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebResponseHeader 更改响应Header策略

func (*HTTPWebService) UpdateHTTPWebRewriteRules

func (this *HTTPWebService) UpdateHTTPWebRewriteRules(ctx context.Context, req *pb.UpdateHTTPWebRewriteRulesRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebRewriteRules 更改重写规则设置

func (*HTTPWebService) UpdateHTTPWebShutdown

func (this *HTTPWebService) UpdateHTTPWebShutdown(ctx context.Context, req *pb.UpdateHTTPWebShutdownRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebShutdown 更改Shutdown

func (*HTTPWebService) UpdateHTTPWebStat

func (this *HTTPWebService) UpdateHTTPWebStat(ctx context.Context, req *pb.UpdateHTTPWebStatRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebStat 更改统计配置

func (*HTTPWebService) UpdateHTTPWebUAM

func (this *HTTPWebService) UpdateHTTPWebUAM(ctx context.Context, req *pb.UpdateHTTPWebUAMRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebUAM 修改UAM设置

func (*HTTPWebService) UpdateHTTPWebWebP

func (this *HTTPWebService) UpdateHTTPWebWebP(ctx context.Context, req *pb.UpdateHTTPWebWebPRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebWebP 修改WebP配置

func (*HTTPWebService) UpdateHTTPWebWebsocket

func (this *HTTPWebService) UpdateHTTPWebWebsocket(ctx context.Context, req *pb.UpdateHTTPWebWebsocketRequest) (*pb.RPCSuccess, error)

UpdateHTTPWebWebsocket 更改Websocket设置

type HTTPWebsocketService

type HTTPWebsocketService struct {
	BaseService
}

func (*HTTPWebsocketService) CreateHTTPWebsocket

创建Websocket配置

func (*HTTPWebsocketService) UpdateHTTPWebsocket

func (this *HTTPWebsocketService) UpdateHTTPWebsocket(ctx context.Context, req *pb.UpdateHTTPWebsocketRequest) (*pb.RPCSuccess, error)

修改Websocket配置

type IPItemService

type IPItemService struct {
	BaseService
}

IPItemService IP条目相关服务

func (*IPItemService) CheckIPItemStatus

CheckIPItemStatus 检查IP状态

func (*IPItemService) CountAllEnabledIPItems

func (this *IPItemService) CountAllEnabledIPItems(ctx context.Context, req *pb.CountAllEnabledIPItemsRequest) (*pb.RPCCountResponse, error)

CountAllEnabledIPItems 计算所有IP数量

func (*IPItemService) CountIPItemsWithListId

func (this *IPItemService) CountIPItemsWithListId(ctx context.Context, req *pb.CountIPItemsWithListIdRequest) (*pb.RPCCountResponse, error)

CountIPItemsWithListId 计算IP数量

func (*IPItemService) CreateIPItem

func (this *IPItemService) CreateIPItem(ctx context.Context, req *pb.CreateIPItemRequest) (*pb.CreateIPItemResponse, error)

CreateIPItem 创建IP

func (*IPItemService) DeleteIPItem

func (this *IPItemService) DeleteIPItem(ctx context.Context, req *pb.DeleteIPItemRequest) (*pb.RPCSuccess, error)

DeleteIPItem 删除IP

func (*IPItemService) DeleteIPItems

func (this *IPItemService) DeleteIPItems(ctx context.Context, req *pb.DeleteIPItemsRequest) (*pb.RPCSuccess, error)

DeleteIPItems 批量删除IP

func (*IPItemService) ExistsEnabledIPItem

ExistsEnabledIPItem 检查IP是否存在

func (*IPItemService) FindEnabledIPItem

FindEnabledIPItem 查找单个IP

func (*IPItemService) ListAllEnabledIPItems

ListAllEnabledIPItems 搜索IP

func (*IPItemService) ListIPItemsAfterVersion

ListIPItemsAfterVersion 根据版本列出一组IP

func (*IPItemService) ListIPItemsWithListId

ListIPItemsWithListId 列出单页的IP

func (*IPItemService) UpdateIPItem

func (this *IPItemService) UpdateIPItem(ctx context.Context, req *pb.UpdateIPItemRequest) (*pb.RPCSuccess, error)

UpdateIPItem 修改IP

func (*IPItemService) UpdateIPItemsRead

func (this *IPItemService) UpdateIPItemsRead(ctx context.Context, req *pb.UpdateIPItemsReadRequest) (*pb.RPCSuccess, error)

UpdateIPItemsRead 设置所有为已读

type IPLibraryArtifactService added in v0.5.2

type IPLibraryArtifactService struct {
	BaseService
}

IPLibraryArtifactService IP库制品

func (*IPLibraryArtifactService) CreateIPLibraryArtifact added in v0.5.2

CreateIPLibraryArtifact 创建制品

func (*IPLibraryArtifactService) DeleteIPLibraryArtifact added in v0.5.2

func (this *IPLibraryArtifactService) DeleteIPLibraryArtifact(ctx context.Context, req *pb.DeleteIPLibraryArtifactRequest) (*pb.RPCSuccess, error)

DeleteIPLibraryArtifact 删除制品

func (*IPLibraryArtifactService) FindAllIPLibraryArtifacts added in v0.5.2

FindAllIPLibraryArtifacts 查询所有制品

func (*IPLibraryArtifactService) FindIPLibraryArtifact added in v0.5.2

FindIPLibraryArtifact 查找当前正在使用的制品

func (*IPLibraryArtifactService) FindPublicIPLibraryArtifact added in v0.5.2

FindPublicIPLibraryArtifact 查找当前正在使用的制品

func (*IPLibraryArtifactService) UpdateIPLibraryArtifactIsPublic added in v0.5.2

func (this *IPLibraryArtifactService) UpdateIPLibraryArtifactIsPublic(ctx context.Context, req *pb.UpdateIPLibraryArtifactIsPublicRequest) (*pb.RPCSuccess, error)

UpdateIPLibraryArtifactIsPublic 使用/取消使用制品

type IPLibraryFileService added in v0.5.0

type IPLibraryFileService struct {
	BaseService
}

IPLibraryFileService IP库文件管理

func (*IPLibraryFileService) CheckCitiesWithIPLibraryFileId added in v0.5.0

CheckCitiesWithIPLibraryFileId 检查城市/市

func (*IPLibraryFileService) CheckCountriesWithIPLibraryFileId added in v0.5.0

CheckCountriesWithIPLibraryFileId 检查国家/地区

func (*IPLibraryFileService) CheckProvidersWithIPLibraryFileId added in v0.5.0

CheckProvidersWithIPLibraryFileId 检查ISP运营商

func (*IPLibraryFileService) CheckProvincesWithIPLibraryFileId added in v0.5.0

CheckProvincesWithIPLibraryFileId 检查省份/州

func (*IPLibraryFileService) CheckTownsWithIPLibraryFileId added in v0.5.0

CheckTownsWithIPLibraryFileId 检查区县

func (*IPLibraryFileService) CreateIPLibraryFile added in v0.5.0

CreateIPLibraryFile 创建IP库文件

func (*IPLibraryFileService) DeleteIPLibraryFile added in v0.5.2

func (this *IPLibraryFileService) DeleteIPLibraryFile(ctx context.Context, req *pb.DeleteIPLibraryFileRequest) (*pb.RPCSuccess, error)

DeleteIPLibraryFile 删除IP库文件

func (*IPLibraryFileService) FindAllFinishedIPLibraryFiles added in v0.5.2

FindAllFinishedIPLibraryFiles 查找所有已完成的IP库文件

func (*IPLibraryFileService) FindAllUnfinishedIPLibraryFiles added in v0.5.0

FindAllUnfinishedIPLibraryFiles 查找所有未完成的IP库文件

func (*IPLibraryFileService) FindIPLibraryFile added in v0.5.0

FindIPLibraryFile 查找单个IP库文件

func (*IPLibraryFileService) GenerateIPLibraryFile added in v0.5.0

func (this *IPLibraryFileService) GenerateIPLibraryFile(ctx context.Context, req *pb.GenerateIPLibraryFileRequest) (*pb.RPCSuccess, error)

GenerateIPLibraryFile 生成IP库文件

func (*IPLibraryFileService) UpdateIPLibraryFileFinished added in v0.5.2

func (this *IPLibraryFileService) UpdateIPLibraryFileFinished(ctx context.Context, req *pb.UpdateIPLibraryFileFinishedRequest) (*pb.RPCSuccess, error)

UpdateIPLibraryFileFinished 设置某个IP库为已完成

type IPLibraryService

type IPLibraryService struct {
	BaseService
}

IPLibraryService IP库服务

func (*IPLibraryService) CreateIPLibrary

CreateIPLibrary 创建IP库

func (*IPLibraryService) DeleteIPLibrary

func (this *IPLibraryService) DeleteIPLibrary(ctx context.Context, req *pb.DeleteIPLibraryRequest) (*pb.RPCSuccess, error)

DeleteIPLibrary 删除IP库

func (*IPLibraryService) FindAllEnabledIPLibrariesWithType

FindAllEnabledIPLibrariesWithType 列出某个类型的所有IP库

func (*IPLibraryService) FindEnabledIPLibrary

FindEnabledIPLibrary 查找单个IP库

func (*IPLibraryService) FindLatestIPLibraryWithType

FindLatestIPLibraryWithType 查找最新的IP库

func (*IPLibraryService) LookupIPRegion

LookupIPRegion 查询某个IP信息

func (*IPLibraryService) LookupIPRegions

LookupIPRegions 查询一组IP信息

type IPListService

type IPListService struct {
	BaseService
}

IPListService IP名单相关服务

func (*IPListService) CountAllEnabledIPLists

func (this *IPListService) CountAllEnabledIPLists(ctx context.Context, req *pb.CountAllEnabledIPListsRequest) (*pb.RPCCountResponse, error)

CountAllEnabledIPLists 计算名单数量

func (*IPListService) CreateIPList

func (this *IPListService) CreateIPList(ctx context.Context, req *pb.CreateIPListRequest) (*pb.CreateIPListResponse, error)

CreateIPList 创建IP列表

func (*IPListService) DeleteIPList

func (this *IPListService) DeleteIPList(ctx context.Context, req *pb.DeleteIPListRequest) (*pb.RPCSuccess, error)

DeleteIPList 删除IP名单

func (*IPListService) ExistsEnabledIPList

ExistsEnabledIPList 检查IPList是否存在

func (*IPListService) FindEnabledIPList

FindEnabledIPList 查找IP列表

func (*IPListService) FindEnabledIPListContainsIP

FindEnabledIPListContainsIP 根据IP来搜索IP名单

func (*IPListService) ListEnabledIPLists

ListEnabledIPLists 列出单页名单

func (*IPListService) UpdateIPList

func (this *IPListService) UpdateIPList(ctx context.Context, req *pb.UpdateIPListRequest) (*pb.RPCSuccess, error)

UpdateIPList 修改IP列表

type LatestItemService

type LatestItemService struct {
	BaseService
}

LatestItemService 最近使用的条目服务

func (*LatestItemService) IncreaseLatestItem

func (this *LatestItemService) IncreaseLatestItem(ctx context.Context, req *pb.IncreaseLatestItemRequest) (*pb.RPCSuccess, error)

IncreaseLatestItem 记录最近使用的条目

type LogService

type LogService struct {
	BaseService
}

LogService 管理员、用户或者其他系统用户日志

func (*LogService) CleanLogsPermanently

func (this *LogService) CleanLogsPermanently(ctx context.Context, req *pb.CleanLogsPermanentlyRequest) (*pb.RPCSuccess, error)

CleanLogsPermanently 清理日志

func (*LogService) CountLogs

func (this *LogService) CountLogs(ctx context.Context, req *pb.CountLogRequest) (*pb.RPCCountResponse, error)

CountLogs 计算日志数量

func (*LogService) CreateLog

func (this *LogService) CreateLog(ctx context.Context, req *pb.CreateLogRequest) (*pb.CreateLogResponse, error)

CreateLog 创建日志

func (*LogService) DeleteLogPermanently

func (this *LogService) DeleteLogPermanently(ctx context.Context, req *pb.DeleteLogPermanentlyRequest) (*pb.RPCSuccess, error)

DeleteLogPermanently 删除单条

func (*LogService) DeleteLogsPermanently

func (this *LogService) DeleteLogsPermanently(ctx context.Context, req *pb.DeleteLogsPermanentlyRequest) (*pb.RPCSuccess, error)

DeleteLogsPermanently 批量删除

func (*LogService) ListLogs

func (this *LogService) ListLogs(ctx context.Context, req *pb.ListLogsRequest) (*pb.ListLogsResponse, error)

ListLogs 列出单页日志

func (*LogService) SumLogsSize

func (this *LogService) SumLogsSize(ctx context.Context, req *pb.SumLogsSizeRequest) (*pb.SumLogsResponse, error)

SumLogsSize 计算日志容量大小

type LoginService

type LoginService struct {
	BaseService
}

LoginService 管理员认证相关服务

func (*LoginService) FindEnabledLogin

FindEnabledLogin 查找认证

func (*LoginService) UpdateLogin

func (this *LoginService) UpdateLogin(ctx context.Context, req *pb.UpdateLoginRequest) (*pb.RPCSuccess, error)

UpdateLogin 修改认证

type MessageMediaInstanceService

type MessageMediaInstanceService struct {
	BaseService
}

MessageMediaInstanceService 消息媒介实例服务

func (*MessageMediaInstanceService) CountAllEnabledMessageMediaInstances

func (this *MessageMediaInstanceService) CountAllEnabledMessageMediaInstances(ctx context.Context, req *pb.CountAllEnabledMessageMediaInstancesRequest) (*pb.RPCCountResponse, error)

CountAllEnabledMessageMediaInstances 计算媒介实例数量

func (*MessageMediaInstanceService) CreateMessageMediaInstance

CreateMessageMediaInstance 创建消息媒介实例

func (*MessageMediaInstanceService) DeleteMessageMediaInstance

func (this *MessageMediaInstanceService) DeleteMessageMediaInstance(ctx context.Context, req *pb.DeleteMessageMediaInstanceRequest) (*pb.RPCSuccess, error)

DeleteMessageMediaInstance 删除媒介实例

func (*MessageMediaInstanceService) FindEnabledMessageMediaInstance

FindEnabledMessageMediaInstance 查找单个媒介实例信息

func (*MessageMediaInstanceService) ListEnabledMessageMediaInstances

ListEnabledMessageMediaInstances 列出单页媒介实例

func (*MessageMediaInstanceService) UpdateMessageMediaInstance

func (this *MessageMediaInstanceService) UpdateMessageMediaInstance(ctx context.Context, req *pb.UpdateMessageMediaInstanceRequest) (*pb.RPCSuccess, error)

UpdateMessageMediaInstance 修改消息实例

type MessageMediaService

type MessageMediaService struct {
	BaseService
}

MessageMediaService 消息媒介服务

func (*MessageMediaService) FindAllMessageMedias

FindAllMessageMedias 获取所有支持的媒介

func (*MessageMediaService) UpdateMessageMedias

func (this *MessageMediaService) UpdateMessageMedias(ctx context.Context, req *pb.UpdateMessageMediasRequest) (*pb.RPCSuccess, error)

UpdateMessageMedias 设置所有支持的媒介

type MessageReceiverService

type MessageReceiverService struct {
	BaseService
}

MessageReceiverService 消息对象接收人

func (*MessageReceiverService) CountAllEnabledMessageReceivers

func (this *MessageReceiverService) CountAllEnabledMessageReceivers(ctx context.Context, req *pb.CountAllEnabledMessageReceiversRequest) (*pb.RPCCountResponse, error)

CountAllEnabledMessageReceivers 计算接收者数量

func (*MessageReceiverService) DeleteMessageReceiver

func (this *MessageReceiverService) DeleteMessageReceiver(ctx context.Context, req *pb.DeleteMessageReceiverRequest) (*pb.RPCSuccess, error)

DeleteMessageReceiver 删除接收者

func (*MessageReceiverService) FindAllEnabledMessageReceivers

FindAllEnabledMessageReceivers 查找接收者

func (*MessageReceiverService) UpdateMessageReceivers

func (this *MessageReceiverService) UpdateMessageReceivers(ctx context.Context, req *pb.UpdateMessageReceiversRequest) (*pb.RPCSuccess, error)

UpdateMessageReceivers 创建接收者

type MessageRecipientGroupService

type MessageRecipientGroupService struct {
	BaseService
}

消息接收人分组

func (*MessageRecipientGroupService) CreateMessageRecipientGroup

创建分组

func (*MessageRecipientGroupService) DeleteMessageRecipientGroup

func (this *MessageRecipientGroupService) DeleteMessageRecipientGroup(ctx context.Context, req *pb.DeleteMessageRecipientGroupRequest) (*pb.RPCSuccess, error)

删除分组

func (*MessageRecipientGroupService) FindAllEnabledMessageRecipientGroups

查找所有可用的分组

func (*MessageRecipientGroupService) FindEnabledMessageRecipientGroup

查找单个分组信息

func (*MessageRecipientGroupService) UpdateMessageRecipientGroup

func (this *MessageRecipientGroupService) UpdateMessageRecipientGroup(ctx context.Context, req *pb.UpdateMessageRecipientGroupRequest) (*pb.RPCSuccess, error)

修改分组

type MessageRecipientService

type MessageRecipientService struct {
	BaseService
}

MessageRecipientService 消息接收人服务

func (*MessageRecipientService) CountAllEnabledMessageRecipients

func (this *MessageRecipientService) CountAllEnabledMessageRecipients(ctx context.Context, req *pb.CountAllEnabledMessageRecipientsRequest) (*pb.RPCCountResponse, error)

CountAllEnabledMessageRecipients 计算接收人数量

func (*MessageRecipientService) CreateMessageRecipient

CreateMessageRecipient 创建接收人

func (*MessageRecipientService) DeleteMessageRecipient

func (this *MessageRecipientService) DeleteMessageRecipient(ctx context.Context, req *pb.DeleteMessageRecipientRequest) (*pb.RPCSuccess, error)

DeleteMessageRecipient 删除接收人

func (*MessageRecipientService) FindEnabledMessageRecipient

FindEnabledMessageRecipient 查找单个接收人信息

func (*MessageRecipientService) ListEnabledMessageRecipients

ListEnabledMessageRecipients 列出单页接收人

func (*MessageRecipientService) UpdateMessageRecipient

func (this *MessageRecipientService) UpdateMessageRecipient(ctx context.Context, req *pb.UpdateMessageRecipientRequest) (*pb.RPCSuccess, error)

UpdateMessageRecipient 修改接收人

type MessageService

type MessageService struct {
	BaseService
}

MessageService 消息相关服务

func (*MessageService) CountUnreadMessages

func (this *MessageService) CountUnreadMessages(ctx context.Context, req *pb.CountUnreadMessagesRequest) (*pb.RPCCountResponse, error)

CountUnreadMessages 计算未读消息数

func (*MessageService) ListUnreadMessages

ListUnreadMessages 列出单页未读消息

func (*MessageService) UpdateAllMessagesRead

func (this *MessageService) UpdateAllMessagesRead(ctx context.Context, req *pb.UpdateAllMessagesReadRequest) (*pb.RPCSuccess, error)

UpdateAllMessagesRead 设置所有消息为已读

func (*MessageService) UpdateMessageRead

func (this *MessageService) UpdateMessageRead(ctx context.Context, req *pb.UpdateMessageReadRequest) (*pb.RPCSuccess, error)

UpdateMessageRead 设置消息已读状态

func (*MessageService) UpdateMessagesRead

func (this *MessageService) UpdateMessagesRead(ctx context.Context, req *pb.UpdateMessagesReadRequest) (*pb.RPCSuccess, error)

UpdateMessagesRead 设置一组消息已读状态

type MessageTaskLogService

type MessageTaskLogService struct {
	BaseService
}

MessageTaskLogService 消息发送日志相关服务

func (*MessageTaskLogService) CountMessageTaskLogs

func (this *MessageTaskLogService) CountMessageTaskLogs(ctx context.Context, req *pb.CountMessageTaskLogsRequest) (*pb.RPCCountResponse, error)

CountMessageTaskLogs 计算日志数量

func (*MessageTaskLogService) ListMessageTaskLogs

ListMessageTaskLogs 列出当页日志

type MessageTaskService

type MessageTaskService struct {
	BaseService
}

MessageTaskService 消息发送任务服务

func (*MessageTaskService) CountMessageTasksWithStatus

func (this *MessageTaskService) CountMessageTasksWithStatus(ctx context.Context, req *pb.CountMessageTasksWithStatusRequest) (*pb.RPCCountResponse, error)

CountMessageTasksWithStatus 计算某个状态的消息任务数量

func (*MessageTaskService) CreateMessageTask

CreateMessageTask 创建任务

func (*MessageTaskService) DeleteMessageTask

func (this *MessageTaskService) DeleteMessageTask(ctx context.Context, req *pb.DeleteMessageTaskRequest) (*pb.RPCSuccess, error)

DeleteMessageTask 删除消息任务

func (*MessageTaskService) FindEnabledMessageTask

FindEnabledMessageTask 读取消息任务状态

func (*MessageTaskService) FindSendingMessageTasks

FindSendingMessageTasks 查找要发送的任务

func (*MessageTaskService) ListMessageTasksWithStatus

ListMessageTasksWithStatus 根据状态列出某页任务

func (*MessageTaskService) UpdateMessageTaskStatus

func (this *MessageTaskService) UpdateMessageTaskStatus(ctx context.Context, req *pb.UpdateMessageTaskStatusRequest) (*pb.RPCSuccess, error)

UpdateMessageTaskStatus 修改任务状态

type MetricChartService

type MetricChartService struct {
	BaseService
}

MetricChartService 指标图表相关服务

func (*MetricChartService) CountEnabledMetricCharts

func (this *MetricChartService) CountEnabledMetricCharts(ctx context.Context, req *pb.CountEnabledMetricChartsRequest) (*pb.RPCCountResponse, error)

CountEnabledMetricCharts 计算图表数量

func (*MetricChartService) CreateMetricChart

CreateMetricChart 创建图表

func (*MetricChartService) DeleteMetricChart

func (this *MetricChartService) DeleteMetricChart(ctx context.Context, req *pb.DeleteMetricChartRequest) (*pb.RPCSuccess, error)

DeleteMetricChart 删除图表

func (*MetricChartService) FindEnabledMetricChart

FindEnabledMetricChart 查找单个图表

func (*MetricChartService) ListEnabledMetricCharts

ListEnabledMetricCharts 列出单页图表

func (*MetricChartService) UpdateMetricChart

func (this *MetricChartService) UpdateMetricChart(ctx context.Context, req *pb.UpdateMetricChartRequest) (*pb.RPCSuccess, error)

UpdateMetricChart 修改图表

type MetricItemService

type MetricItemService struct {
	BaseService
}

MetricItemService 指标相关服务

func (*MetricItemService) CountAllEnabledMetricItems

func (this *MetricItemService) CountAllEnabledMetricItems(ctx context.Context, req *pb.CountAllEnabledMetricItemsRequest) (*pb.RPCCountResponse, error)

CountAllEnabledMetricItems 计算指标数量

func (*MetricItemService) CreateMetricItem

CreateMetricItem 创建指标

func (*MetricItemService) DeleteMetricItem

func (this *MetricItemService) DeleteMetricItem(ctx context.Context, req *pb.DeleteMetricItemRequest) (*pb.RPCSuccess, error)

DeleteMetricItem 删除指标

func (*MetricItemService) FindEnabledMetricItem

FindEnabledMetricItem 查找单个指标信息

func (*MetricItemService) ListEnabledMetricItems

ListEnabledMetricItems 列出单页指标

func (*MetricItemService) UpdateMetricItem

func (this *MetricItemService) UpdateMetricItem(ctx context.Context, req *pb.UpdateMetricItemRequest) (*pb.RPCSuccess, error)

UpdateMetricItem 修改指标

type MetricStatService

type MetricStatService struct {
	BaseService
}

MetricStatService 指标统计数据相关服务

func (*MetricStatService) CountMetricStats

func (this *MetricStatService) CountMetricStats(ctx context.Context, req *pb.CountMetricStatsRequest) (*pb.RPCCountResponse, error)

CountMetricStats 计算指标数据数量

func (*MetricStatService) ListMetricStats

ListMetricStats 读取单页指标数据

func (*MetricStatService) UploadMetricStats

func (this *MetricStatService) UploadMetricStats(ctx context.Context, req *pb.UploadMetricStatsRequest) (*pb.RPCSuccess, error)

UploadMetricStats 上传统计数据

type MonitorNodeService

type MonitorNodeService struct {
	BaseService
}

func (*MonitorNodeService) CountAllEnabledMonitorNodes

func (this *MonitorNodeService) CountAllEnabledMonitorNodes(ctx context.Context, req *pb.CountAllEnabledMonitorNodesRequest) (*pb.RPCCountResponse, error)

CountAllEnabledMonitorNodes 计算监控节点数量

func (*MonitorNodeService) CreateMonitorNode

CreateMonitorNode 创建监控节点

func (*MonitorNodeService) DeleteMonitorNode

func (this *MonitorNodeService) DeleteMonitorNode(ctx context.Context, req *pb.DeleteMonitorNodeRequest) (*pb.RPCSuccess, error)

DeleteMonitorNode 删除监控节点

func (*MonitorNodeService) FindAllEnabledMonitorNodes

FindAllEnabledMonitorNodes 列出所有可用监控节点

func (*MonitorNodeService) FindCurrentMonitorNode

FindCurrentMonitorNode 获取当前监控节点的版本

func (*MonitorNodeService) FindEnabledMonitorNode

FindEnabledMonitorNode 根据ID查找节点

func (*MonitorNodeService) ListEnabledMonitorNodes

ListEnabledMonitorNodes 列出单页的监控节点

func (*MonitorNodeService) UpdateMonitorNode

func (this *MonitorNodeService) UpdateMonitorNode(ctx context.Context, req *pb.UpdateMonitorNodeRequest) (*pb.RPCSuccess, error)

UpdateMonitorNode 修改监控节点

func (*MonitorNodeService) UpdateMonitorNodeStatus

func (this *MonitorNodeService) UpdateMonitorNodeStatus(ctx context.Context, req *pb.UpdateMonitorNodeStatusRequest) (*pb.RPCSuccess, error)

UpdateMonitorNodeStatus 更新节点状态

type NodeClusterFirewallActionService

type NodeClusterFirewallActionService struct {
	BaseService
}

NodeClusterFirewallActionService 防火墙动作服务

func (*NodeClusterFirewallActionService) CountAllEnabledNodeClusterFirewallActions

CountAllEnabledNodeClusterFirewallActions 计算动作数量

func (*NodeClusterFirewallActionService) CreateNodeClusterFirewallAction

CreateNodeClusterFirewallAction 创建动作

func (*NodeClusterFirewallActionService) DeleteNodeClusterFirewallAction

func (this *NodeClusterFirewallActionService) DeleteNodeClusterFirewallAction(ctx context.Context, req *pb.DeleteNodeClusterFirewallActionRequest) (*pb.RPCSuccess, error)

DeleteNodeClusterFirewallAction 删除动作

func (*NodeClusterFirewallActionService) FindAllEnabledNodeClusterFirewallActions

FindAllEnabledNodeClusterFirewallActions 查询集群的所有动作

func (*NodeClusterFirewallActionService) FindEnabledNodeClusterFirewallAction

FindEnabledNodeClusterFirewallAction 查询单个动作

func (*NodeClusterFirewallActionService) UpdateNodeClusterFirewallAction

func (this *NodeClusterFirewallActionService) UpdateNodeClusterFirewallAction(ctx context.Context, req *pb.UpdateNodeClusterFirewallActionRequest) (*pb.RPCSuccess, error)

UpdateNodeClusterFirewallAction 修改动作

type NodeClusterMetricItemService

type NodeClusterMetricItemService struct {
	BaseService
}

NodeClusterMetricItemService 集群指标

func (*NodeClusterMetricItemService) DisableNodeClusterMetricItem

func (this *NodeClusterMetricItemService) DisableNodeClusterMetricItem(ctx context.Context, req *pb.DisableNodeClusterMetricItemRequest) (*pb.RPCSuccess, error)

DisableNodeClusterMetricItem 禁用某个指标

func (*NodeClusterMetricItemService) EnableNodeClusterMetricItem

func (this *NodeClusterMetricItemService) EnableNodeClusterMetricItem(ctx context.Context, req *pb.EnableNodeClusterMetricItemRequest) (*pb.RPCSuccess, error)

EnableNodeClusterMetricItem 启用某个指标

func (*NodeClusterMetricItemService) ExistsNodeClusterMetricItem

func (this *NodeClusterMetricItemService) ExistsNodeClusterMetricItem(ctx context.Context, req *pb.ExistsNodeClusterMetricItemRequest) (*pb.RPCExists, error)

ExistsNodeClusterMetricItem 检查是否已添加某个指标

func (*NodeClusterMetricItemService) FindAllNodeClusterMetricItems

FindAllNodeClusterMetricItems 查找集群中所有指标

func (*NodeClusterMetricItemService) FindAllNodeClustersWithMetricItemId

FindAllNodeClustersWithMetricItemId 查找使用指标的集群

type NodeClusterService

type NodeClusterService struct {
	BaseService
}

func (*NodeClusterService) CheckNodeClusterDNSChanges

CheckNodeClusterDNSChanges 检查集群的DNS是否有变化

func (*NodeClusterService) CheckNodeClusterDNSName

CheckNodeClusterDNSName 检查集群域名是否已经被使用

func (*NodeClusterService) CheckPortIsUsingInNodeCluster

CheckPortIsUsingInNodeCluster 检查端口是否已经被使用

func (*NodeClusterService) CountAllEnabledNodeClusters

func (this *NodeClusterService) CountAllEnabledNodeClusters(ctx context.Context, req *pb.CountAllEnabledNodeClustersRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNodeClusters 计算所有集群数量

func (*NodeClusterService) CountAllEnabledNodeClustersWithDNSDomainId

func (this *NodeClusterService) CountAllEnabledNodeClustersWithDNSDomainId(ctx context.Context, req *pb.CountAllEnabledNodeClustersWithDNSDomainIdRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNodeClustersWithDNSDomainId 计算使用某个DNS域名的集群数量

func (*NodeClusterService) CountAllEnabledNodeClustersWithDNSProviderId

func (this *NodeClusterService) CountAllEnabledNodeClustersWithDNSProviderId(ctx context.Context, req *pb.CountAllEnabledNodeClustersWithDNSProviderIdRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNodeClustersWithDNSProviderId 计算使用某个DNS服务商的集群数量

func (*NodeClusterService) CountAllEnabledNodeClustersWithHTTPCachePolicyId

func (this *NodeClusterService) CountAllEnabledNodeClustersWithHTTPCachePolicyId(ctx context.Context, req *pb.CountAllEnabledNodeClustersWithHTTPCachePolicyIdRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNodeClustersWithHTTPCachePolicyId 计算使用某个缓存策略的集群数量

func (*NodeClusterService) CountAllEnabledNodeClustersWithHTTPFirewallPolicyId

func (this *NodeClusterService) CountAllEnabledNodeClustersWithHTTPFirewallPolicyId(ctx context.Context, req *pb.CountAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNodeClustersWithHTTPFirewallPolicyId 计算使用某个WAF策略的集群数量

func (*NodeClusterService) CountAllEnabledNodeClustersWithNodeGrantId

func (this *NodeClusterService) CountAllEnabledNodeClustersWithNodeGrantId(ctx context.Context, req *pb.CountAllEnabledNodeClustersWithNodeGrantIdRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNodeClustersWithNodeGrantId 计算使用某个认证的集群数量

func (*NodeClusterService) CreateNodeCluster

CreateNodeCluster 创建集群

func (*NodeClusterService) DeleteNodeCluster

func (this *NodeClusterService) DeleteNodeCluster(ctx context.Context, req *pb.DeleteNodeClusterRequest) (*pb.RPCSuccess, error)

DeleteNodeCluster 禁用集群

func (*NodeClusterService) ExecuteNodeClusterHealthCheck

ExecuteNodeClusterHealthCheck 执行健康检查

func (*NodeClusterService) FindAPINodesWithNodeCluster

FindAPINodesWithNodeCluster 查找集群的API节点信息

func (*NodeClusterService) FindAllEnabledNodeClusters

FindAllEnabledNodeClusters 查找所有可用的集群

func (*NodeClusterService) FindAllEnabledNodeClustersWithDNSDomainId

FindAllEnabledNodeClustersWithDNSDomainId 查找使用某个域名的所有集群

func (*NodeClusterService) FindAllEnabledNodeClustersWithHTTPCachePolicyId

FindAllEnabledNodeClustersWithHTTPCachePolicyId 查找使用缓存策略的所有集群

func (*NodeClusterService) FindAllEnabledNodeClustersWithHTTPFirewallPolicyId

FindAllEnabledNodeClustersWithHTTPFirewallPolicyId 查找使用WAF策略的所有集群

func (*NodeClusterService) FindAllEnabledNodeClustersWithNodeGrantId

FindAllEnabledNodeClustersWithNodeGrantId 查找使用某个认证的所有集群

func (*NodeClusterService) FindEnabledNodeCluster

FindEnabledNodeCluster 查找单个集群

func (*NodeClusterService) FindEnabledNodeClusterConfigInfo

FindEnabledNodeClusterConfigInfo 取得集群的配置概要信息

func (*NodeClusterService) FindEnabledNodeClusterDNS

FindEnabledNodeClusterDNS 查找集群的DNS配置

func (*NodeClusterService) FindEnabledNodeClusterTOA

FindEnabledNodeClusterTOA 查找集群的TOA配置

func (*NodeClusterService) FindEnabledNodeClusterUAMPolicy added in v0.4.9

FindEnabledNodeClusterUAMPolicy 读取集群UAM策略

func (*NodeClusterService) FindEnabledNodeClusterWebPPolicy

FindEnabledNodeClusterWebPPolicy 读取集群WebP策略

func (*NodeClusterService) FindFreePortInNodeCluster

FindFreePortInNodeCluster 获取集群中可以使用的端口

func (*NodeClusterService) FindLatestNodeClusters

FindLatestNodeClusters 查找最近访问的集群

func (*NodeClusterService) FindNodeClusterDDoSProtection

FindNodeClusterDDoSProtection 获取集群的DDoS设置

func (*NodeClusterService) FindNodeClusterGlobalServerConfig added in v0.5.3

FindNodeClusterGlobalServerConfig 获取集群的全局服务设置

func (*NodeClusterService) FindNodeClusterHealthCheckConfig

FindNodeClusterHealthCheckConfig 查找集群的健康检查配置

func (*NodeClusterService) FindNodeClusterSystemService

FindNodeClusterSystemService 查找集群的系统服务设置

func (*NodeClusterService) ListEnabledNodeClusters

ListEnabledNodeClusters 列出单页集群

func (*NodeClusterService) UpdateNodeCluster

func (this *NodeClusterService) UpdateNodeCluster(ctx context.Context, req *pb.UpdateNodeClusterRequest) (*pb.RPCSuccess, error)

UpdateNodeCluster 修改集群

func (*NodeClusterService) UpdateNodeClusterDDoSProtection

func (this *NodeClusterService) UpdateNodeClusterDDoSProtection(ctx context.Context, req *pb.UpdateNodeClusterDDoSProtectionRequest) (*pb.RPCSuccess, error)

UpdateNodeClusterDDoSProtection 修改集群的DDoS设置

func (*NodeClusterService) UpdateNodeClusterDNS

func (this *NodeClusterService) UpdateNodeClusterDNS(ctx context.Context, req *pb.UpdateNodeClusterDNSRequest) (*pb.RPCSuccess, error)

UpdateNodeClusterDNS 修改集群的域名设置

func (*NodeClusterService) UpdateNodeClusterGlobalServerConfig added in v0.5.3

func (this *NodeClusterService) UpdateNodeClusterGlobalServerConfig(ctx context.Context, req *pb.UpdateNodeClusterGlobalServerConfigRequest) (*pb.RPCSuccess, error)

UpdateNodeClusterGlobalServerConfig 修改集群的全局服务设置

func (*NodeClusterService) UpdateNodeClusterHTTPCachePolicyId

func (this *NodeClusterService) UpdateNodeClusterHTTPCachePolicyId(ctx context.Context, req *pb.UpdateNodeClusterHTTPCachePolicyIdRequest) (*pb.RPCSuccess, error)

UpdateNodeClusterHTTPCachePolicyId 修改集群的缓存策略

func (*NodeClusterService) UpdateNodeClusterHTTPFirewallPolicyId

func (this *NodeClusterService) UpdateNodeClusterHTTPFirewallPolicyId(ctx context.Context, req *pb.UpdateNodeClusterHTTPFirewallPolicyIdRequest) (*pb.RPCSuccess, error)

UpdateNodeClusterHTTPFirewallPolicyId 修改集群的WAF策略

func (*NodeClusterService) UpdateNodeClusterHealthCheck

func (this *NodeClusterService) UpdateNodeClusterHealthCheck(ctx context.Context, req *pb.UpdateNodeClusterHealthCheckRequest) (*pb.RPCSuccess, error)

UpdateNodeClusterHealthCheck 修改集群健康检查设置

func (*NodeClusterService) UpdateNodeClusterPinned

func (this *NodeClusterService) UpdateNodeClusterPinned(ctx context.Context, req *pb.UpdateNodeClusterPinnedRequest) (*pb.RPCSuccess, error)

UpdateNodeClusterPinned 设置集群是否置顶

func (*NodeClusterService) UpdateNodeClusterSystemService

func (this *NodeClusterService) UpdateNodeClusterSystemService(ctx context.Context, req *pb.UpdateNodeClusterSystemServiceRequest) (*pb.RPCSuccess, error)

UpdateNodeClusterSystemService 修改集群的系统服务设置

func (*NodeClusterService) UpdateNodeClusterTOA

func (this *NodeClusterService) UpdateNodeClusterTOA(ctx context.Context, req *pb.UpdateNodeClusterTOARequest) (*pb.RPCSuccess, error)

UpdateNodeClusterTOA 修改集群的TOA设置

func (*NodeClusterService) UpdateNodeClusterUAMPolicy added in v0.4.9

func (this *NodeClusterService) UpdateNodeClusterUAMPolicy(ctx context.Context, req *pb.UpdateNodeClusterUAMPolicyRequest) (*pb.RPCSuccess, error)

UpdateNodeClusterUAMPolicy 设置集群的UAM策略

func (*NodeClusterService) UpdateNodeClusterWebPPolicy

func (this *NodeClusterService) UpdateNodeClusterWebPPolicy(ctx context.Context, req *pb.UpdateNodeClusterWebPPolicyRequest) (*pb.RPCSuccess, error)

UpdateNodeClusterWebPPolicy 设置集群WebP策略

type NodeGrantService

type NodeGrantService struct {
	BaseService
}

func (*NodeGrantService) CountAllEnabledNodeGrants

func (this *NodeGrantService) CountAllEnabledNodeGrants(ctx context.Context, req *pb.CountAllEnabledNodeGrantsRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNodeGrants 计算认证的数量

func (*NodeGrantService) CreateNodeGrant

CreateNodeGrant 创建认证

func (*NodeGrantService) DisableNodeGrant

DisableNodeGrant 禁用认证

func (*NodeGrantService) FindAllEnabledNodeGrants

FindAllEnabledNodeGrants 列出所有认证信息

func (*NodeGrantService) FindEnabledNodeGrant

FindEnabledNodeGrant 获取单个认证信息

func (*NodeGrantService) FindSuggestNodeGrants

FindSuggestNodeGrants 查找集群推荐的认证

func (*NodeGrantService) ListEnabledNodeGrants

ListEnabledNodeGrants 列出单页认证

func (*NodeGrantService) TestNodeGrant

TestNodeGrant 测试连接

func (*NodeGrantService) UpdateNodeGrant

func (this *NodeGrantService) UpdateNodeGrant(ctx context.Context, req *pb.UpdateNodeGrantRequest) (*pb.RPCSuccess, error)

UpdateNodeGrant 修改认证

type NodeGroupService

type NodeGroupService struct {
	BaseService
}

NodeGroupService 节点分组相关服务

func (*NodeGroupService) CreateNodeGroup

CreateNodeGroup 创建分组

func (*NodeGroupService) DeleteNodeGroup

func (this *NodeGroupService) DeleteNodeGroup(ctx context.Context, req *pb.DeleteNodeGroupRequest) (*pb.RPCSuccess, error)

DeleteNodeGroup 删除分组

func (*NodeGroupService) FindAllEnabledNodeGroupsWithNodeClusterId

FindAllEnabledNodeGroupsWithNodeClusterId 查询所有分组

func (*NodeGroupService) FindEnabledNodeGroup

FindEnabledNodeGroup 查找单个分组信息

func (*NodeGroupService) UpdateNodeGroup

func (this *NodeGroupService) UpdateNodeGroup(ctx context.Context, req *pb.UpdateNodeGroupRequest) (*pb.RPCSuccess, error)

UpdateNodeGroup 修改分组

func (*NodeGroupService) UpdateNodeGroupOrders

func (this *NodeGroupService) UpdateNodeGroupOrders(ctx context.Context, req *pb.UpdateNodeGroupOrdersRequest) (*pb.RPCSuccess, error)

UpdateNodeGroupOrders 修改分组排序

type NodeIPAddressLogService

type NodeIPAddressLogService struct {
	BaseService
}

NodeIPAddressLogService IP地址相关日志

func (*NodeIPAddressLogService) CountAllNodeIPAddressLogs

func (this *NodeIPAddressLogService) CountAllNodeIPAddressLogs(ctx context.Context, req *pb.CountAllNodeIPAddressLogsRequest) (*pb.RPCCountResponse, error)

CountAllNodeIPAddressLogs 计算日志数量

func (*NodeIPAddressLogService) ListNodeIPAddressLogs

ListNodeIPAddressLogs 列出单页日志

type NodeIPAddressService

type NodeIPAddressService struct {
	BaseService
}

func (*NodeIPAddressService) CountAllEnabledNodeIPAddresses

func (this *NodeIPAddressService) CountAllEnabledNodeIPAddresses(ctx context.Context, req *pb.CountAllEnabledNodeIPAddressesRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNodeIPAddresses 计算IP地址数量

func (*NodeIPAddressService) CreateNodeIPAddress

CreateNodeIPAddress 创建IP地址

func (*NodeIPAddressService) CreateNodeIPAddresses

CreateNodeIPAddresses 批量创建IP地址

func (*NodeIPAddressService) DisableAllNodeIPAddressesWithNodeId

DisableAllNodeIPAddressesWithNodeId 禁用某个节点的IP地址

func (*NodeIPAddressService) DisableNodeIPAddress

DisableNodeIPAddress 禁用单个IP地址

func (*NodeIPAddressService) FindAllEnabledNodeIPAddressesWithNodeId

FindAllEnabledNodeIPAddressesWithNodeId 查找节点的所有地址

func (*NodeIPAddressService) FindEnabledNodeIPAddress

FindEnabledNodeIPAddress 查找单个IP地址

func (*NodeIPAddressService) ListEnabledNodeIPAddresses

ListEnabledNodeIPAddresses 列出单页IP地址

func (*NodeIPAddressService) RestoreNodeIPAddressBackupIP

func (this *NodeIPAddressService) RestoreNodeIPAddressBackupIP(ctx context.Context, req *pb.RestoreNodeIPAddressBackupIPRequest) (*pb.RPCSuccess, error)

RestoreNodeIPAddressBackupIP 还原备用IP状态

func (*NodeIPAddressService) UpdateNodeIPAddress

func (this *NodeIPAddressService) UpdateNodeIPAddress(ctx context.Context, req *pb.UpdateNodeIPAddressRequest) (*pb.RPCSuccess, error)

UpdateNodeIPAddress 修改IP地址

func (*NodeIPAddressService) UpdateNodeIPAddressIsUp

func (this *NodeIPAddressService) UpdateNodeIPAddressIsUp(ctx context.Context, req *pb.UpdateNodeIPAddressIsUpRequest) (*pb.RPCSuccess, error)

UpdateNodeIPAddressIsUp 设置上下线状态

func (*NodeIPAddressService) UpdateNodeIPAddressNodeId

func (this *NodeIPAddressService) UpdateNodeIPAddressNodeId(ctx context.Context, req *pb.UpdateNodeIPAddressNodeIdRequest) (*pb.RPCSuccess, error)

UpdateNodeIPAddressNodeId 修改IP地址所属节点

type NodeIPAddressThresholdService

type NodeIPAddressThresholdService struct {
	BaseService
}

NodeIPAddressThresholdService IP阈值相关服务

func (*NodeIPAddressThresholdService) CountAllEnabledNodeIPAddressThresholds

func (this *NodeIPAddressThresholdService) CountAllEnabledNodeIPAddressThresholds(ctx context.Context, req *pb.CountAllEnabledNodeIPAddressThresholdsRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNodeIPAddressThresholds 计算IP阈值的数量

func (*NodeIPAddressThresholdService) CreateNodeIPAddressThreshold

CreateNodeIPAddressThreshold 创建阈值

func (*NodeIPAddressThresholdService) DeleteNodeIPAddressThreshold

func (this *NodeIPAddressThresholdService) DeleteNodeIPAddressThreshold(ctx context.Context, req *pb.DeleteNodeIPAddressThresholdRequest) (*pb.RPCSuccess, error)

DeleteNodeIPAddressThreshold 删除阈值

func (*NodeIPAddressThresholdService) FindAllEnabledNodeIPAddressThresholds

FindAllEnabledNodeIPAddressThresholds 查找IP的所有阈值

func (*NodeIPAddressThresholdService) UpdateAllNodeIPAddressThresholds

func (this *NodeIPAddressThresholdService) UpdateAllNodeIPAddressThresholds(ctx context.Context, req *pb.UpdateAllNodeIPAddressThresholdsRequest) (*pb.RPCSuccess, error)

UpdateAllNodeIPAddressThresholds 批量更新阈值

func (*NodeIPAddressThresholdService) UpdateNodeIPAddressThreshold

func (this *NodeIPAddressThresholdService) UpdateNodeIPAddressThreshold(ctx context.Context, req *pb.UpdateNodeIPAddressThresholdRequest) (*pb.RPCSuccess, error)

UpdateNodeIPAddressThreshold 修改阈值

type NodeLogService

type NodeLogService struct {
	BaseService
}

NodeLogService 节点日志相关服务

func (*NodeLogService) CountAllUnreadNodeLogs

func (this *NodeLogService) CountAllUnreadNodeLogs(ctx context.Context, req *pb.CountAllUnreadNodeLogsRequest) (*pb.RPCCountResponse, error)

CountAllUnreadNodeLogs 计算未读的日志数量

func (*NodeLogService) CountNodeLogs

func (this *NodeLogService) CountNodeLogs(ctx context.Context, req *pb.CountNodeLogsRequest) (*pb.RPCCountResponse, error)

CountNodeLogs 查询日志数量

func (*NodeLogService) CreateNodeLogs

CreateNodeLogs 创建日志

func (*NodeLogService) FixAllNodeLogs

func (this *NodeLogService) FixAllNodeLogs(ctx context.Context, req *pb.FixAllNodeLogsRequest) (*pb.RPCSuccess, error)

FixAllNodeLogs 设置所有日志为已修复

func (*NodeLogService) FixNodeLogs

func (this *NodeLogService) FixNodeLogs(ctx context.Context, req *pb.FixNodeLogsRequest) (*pb.RPCSuccess, error)

FixNodeLogs 设置日志为已修复

func (*NodeLogService) ListNodeLogs

ListNodeLogs 列出单页日志

func (*NodeLogService) UpdateAllNodeLogsRead

func (this *NodeLogService) UpdateAllNodeLogsRead(ctx context.Context, req *pb.UpdateAllNodeLogsReadRequest) (*pb.RPCSuccess, error)

UpdateAllNodeLogsRead 设置所有日志未已读

func (*NodeLogService) UpdateNodeLogsRead

func (this *NodeLogService) UpdateNodeLogsRead(ctx context.Context, req *pb.UpdateNodeLogsReadRequest) (*pb.RPCSuccess, error)

UpdateNodeLogsRead 设置日志为已读

type NodeLoginService

type NodeLoginService struct {
	BaseService
}

NodeLoginService 节点登录相关

func (*NodeLoginService) FindNodeLoginSuggestPorts

FindNodeLoginSuggestPorts 读取建议的端口

type NodeRegionService

type NodeRegionService struct {
	BaseService
}

NodeRegionService 节点区域相关服务

func (*NodeRegionService) CreateNodeRegion

CreateNodeRegion 创建区域

func (*NodeRegionService) DeleteNodeRegion

func (this *NodeRegionService) DeleteNodeRegion(ctx context.Context, req *pb.DeleteNodeRegionRequest) (*pb.RPCSuccess, error)

DeleteNodeRegion 删除区域

func (*NodeRegionService) FindAllAvailableNodeRegions added in v0.5.0

FindAllAvailableNodeRegions 查找所有启用的区域

func (*NodeRegionService) FindAllEnabledNodeRegions

FindAllEnabledNodeRegions 查找所有区域

func (*NodeRegionService) FindEnabledNodeRegion

FindEnabledNodeRegion 查找单个区域信息

func (*NodeRegionService) UpdateNodeRegion

func (this *NodeRegionService) UpdateNodeRegion(ctx context.Context, req *pb.UpdateNodeRegionRequest) (*pb.RPCSuccess, error)

UpdateNodeRegion 修改区域

func (*NodeRegionService) UpdateNodeRegionOrders

func (this *NodeRegionService) UpdateNodeRegionOrders(ctx context.Context, req *pb.UpdateNodeRegionOrdersRequest) (*pb.RPCSuccess, error)

UpdateNodeRegionOrders 排序

func (*NodeRegionService) UpdateNodeRegionPrice

func (this *NodeRegionService) UpdateNodeRegionPrice(ctx context.Context, req *pb.UpdateNodeRegionPriceRequest) (*pb.RPCSuccess, error)

UpdateNodeRegionPrice 修改价格项价格

type NodeService

type NodeService struct {
	BaseService
}

NodeService 边缘节点相关服务

func (*NodeService) CheckNodeLatestVersion

CheckNodeLatestVersion 检查新版本

func (*NodeService) CountAllEnabledNodes

func (this *NodeService) CountAllEnabledNodes(ctx context.Context, req *pb.CountAllEnabledNodesRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNodes 计算节点数量

func (*NodeService) CountAllEnabledNodesMatch

func (this *NodeService) CountAllEnabledNodesMatch(ctx context.Context, req *pb.CountAllEnabledNodesMatchRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNodesMatch 计算匹配的节点数量

func (*NodeService) CountAllEnabledNodesWithNodeGrantId

func (this *NodeService) CountAllEnabledNodesWithNodeGrantId(ctx context.Context, req *pb.CountAllEnabledNodesWithNodeGrantIdRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNodesWithNodeGrantId 计算使用某个认证的节点数量

func (*NodeService) CountAllEnabledNodesWithNodeGroupId

func (this *NodeService) CountAllEnabledNodesWithNodeGroupId(ctx context.Context, req *pb.CountAllEnabledNodesWithNodeGroupIdRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNodesWithNodeGroupId 计算某个节点分组内的节点数量

func (*NodeService) CountAllEnabledNodesWithNodeRegionId

func (this *NodeService) CountAllEnabledNodesWithNodeRegionId(ctx context.Context, req *pb.CountAllEnabledNodesWithNodeRegionIdRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNodesWithNodeRegionId 计算某个区域下的节点数量

func (*NodeService) CountAllNodeRegionInfo added in v0.5.6

func (this *NodeService) CountAllNodeRegionInfo(ctx context.Context, req *pb.CountAllNodeRegionInfoRequest) (*pb.RPCCountResponse, error)

CountAllNodeRegionInfo 查找节点区域信息数量

func (*NodeService) CountAllNotInstalledNodesWithNodeClusterId

func (this *NodeService) CountAllNotInstalledNodesWithNodeClusterId(ctx context.Context, req *pb.CountAllNotInstalledNodesWithNodeClusterIdRequest) (*pb.RPCCountResponse, error)

CountAllNotInstalledNodesWithNodeClusterId 计算没有安装的节点数量

func (*NodeService) CountAllUpgradeNodesWithNodeClusterId

func (this *NodeService) CountAllUpgradeNodesWithNodeClusterId(ctx context.Context, req *pb.CountAllUpgradeNodesWithNodeClusterIdRequest) (*pb.RPCCountResponse, error)

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

func (*NodeService) CreateNode

func (this *NodeService) CreateNode(ctx context.Context, req *pb.CreateNodeRequest) (*pb.CreateNodeResponse, error)

CreateNode 创建节点

func (*NodeService) DeleteNode

func (this *NodeService) DeleteNode(ctx context.Context, req *pb.DeleteNodeRequest) (*pb.RPCSuccess, error)

DeleteNode 删除节点

func (*NodeService) DeleteNodeFromNodeCluster

func (this *NodeService) DeleteNodeFromNodeCluster(ctx context.Context, req *pb.DeleteNodeFromNodeClusterRequest) (*pb.RPCSuccess, error)

DeleteNodeFromNodeCluster 从集群中删除节点

func (*NodeService) DownloadNodeInstallationFile

DownloadNodeInstallationFile 下载最新边缘节点安装文件

func (*NodeService) FindAllEnabledNodesDNSWithNodeClusterId

FindAllEnabledNodesDNSWithNodeClusterId 取得某个集群下的所有节点

func (*NodeService) FindAllEnabledNodesWithNodeClusterId

FindAllEnabledNodesWithNodeClusterId 查找一个集群下的所有节点

func (*NodeService) FindAllEnabledNodesWithNodeGrantId

FindAllEnabledNodesWithNodeGrantId 查找使用某个认证的所有节点

func (*NodeService) FindAllNotInstalledNodesWithNodeClusterId

FindAllNotInstalledNodesWithNodeClusterId 列出所有未安装的节点

func (*NodeService) FindAllUpgradeNodesWithNodeClusterId

FindAllUpgradeNodesWithNodeClusterId 列出所有需要升级的节点

func (*NodeService) FindCurrentNodeConfig

FindCurrentNodeConfig 组合节点配置

func (*NodeService) FindEnabledBasicNode

FindEnabledBasicNode 获取单个节点基本信息

func (*NodeService) FindEnabledNode

func (this *NodeService) FindEnabledNode(ctx context.Context, req *pb.FindEnabledNodeRequest) (*pb.FindEnabledNodeResponse, error)

FindEnabledNode 查询单个节点信息

func (*NodeService) FindEnabledNodeConfigInfo

FindEnabledNodeConfigInfo 取得节点的配置概要信息

func (*NodeService) FindEnabledNodeDNS

FindEnabledNodeDNS 查找单个节点的域名解析信息

func (*NodeService) FindEnabledNodesWithIds

FindEnabledNodesWithIds 根据一组ID获取节点信息

func (*NodeService) FindNodeAPIConfig added in v0.5.8

FindNodeAPIConfig 查找单个节点的API相关配置

func (*NodeService) FindNodeDDoSProtection

FindNodeDDoSProtection 获取集群的DDoS设置

func (*NodeService) FindNodeDNSResolver

FindNodeDNSResolver 读取节点DNS Resolver

func (*NodeService) FindNodeGlobalServerConfig added in v0.5.3

FindNodeGlobalServerConfig 取得节点的服务全局配置

func (*NodeService) FindNodeInstallStatus

FindNodeInstallStatus 读取节点安装状态

func (*NodeService) FindNodeLevelInfo

FindNodeLevelInfo 读取节点级别信息

func (*NodeService) InstallNode

func (this *NodeService) InstallNode(ctx context.Context, req *pb.InstallNodeRequest) (*pb.InstallNodeResponse, error)

InstallNode 安装节点

func (*NodeService) ListEnabledNodesMatch

ListEnabledNodesMatch 列出单页的节点

func (*NodeService) ListNodeRegionInfo added in v0.5.6

ListNodeRegionInfo 列出单页节点区域信息

func (*NodeService) NodeStream

func (this *NodeService) NodeStream(server pb.NodeService_NodeStreamServer) error

NodeStream 节点stream

func (*NodeService) RegisterClusterNode

RegisterClusterNode 注册集群节点

func (*NodeService) SendCommandToNode

func (this *NodeService) SendCommandToNode(ctx context.Context, req *pb.NodeStreamMessage) (*pb.NodeStreamMessage, error)

SendCommandToNode 向节点发送命令

func (*NodeService) StartNode

func (this *NodeService) StartNode(ctx context.Context, req *pb.StartNodeRequest) (*pb.StartNodeResponse, error)

StartNode 启动节点

func (*NodeService) StopNode

func (this *NodeService) StopNode(ctx context.Context, req *pb.StopNodeRequest) (*pb.StopNodeResponse, error)

StopNode 停止节点

func (*NodeService) UpdateNode

func (this *NodeService) UpdateNode(ctx context.Context, req *pb.UpdateNodeRequest) (*pb.RPCSuccess, error)

UpdateNode 修改节点

func (*NodeService) UpdateNodeAPIConfig added in v0.5.8

func (this *NodeService) UpdateNodeAPIConfig(ctx context.Context, req *pb.UpdateNodeAPIConfigRequest) (*pb.RPCSuccess, error)

UpdateNodeAPIConfig 修改某个节点的API相关配置

func (*NodeService) UpdateNodeCache

func (this *NodeService) UpdateNodeCache(ctx context.Context, req *pb.UpdateNodeCacheRequest) (*pb.RPCSuccess, error)

UpdateNodeCache 修改节点缓存设置

func (*NodeService) UpdateNodeConnectedAPINodes

func (this *NodeService) UpdateNodeConnectedAPINodes(ctx context.Context, req *pb.UpdateNodeConnectedAPINodesRequest) (*pb.RPCSuccess, error)

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

func (*NodeService) UpdateNodeDDoSProtection

func (this *NodeService) UpdateNodeDDoSProtection(ctx context.Context, req *pb.UpdateNodeDDoSProtectionRequest) (*pb.RPCSuccess, error)

UpdateNodeDDoSProtection 修改集群的DDoS设置

func (*NodeService) UpdateNodeDNS

func (this *NodeService) UpdateNodeDNS(ctx context.Context, req *pb.UpdateNodeDNSRequest) (*pb.RPCSuccess, error)

UpdateNodeDNS 修改节点的DNS解析信息

func (*NodeService) UpdateNodeDNSResolver

func (this *NodeService) UpdateNodeDNSResolver(ctx context.Context, req *pb.UpdateNodeDNSResolverRequest) (*pb.RPCSuccess, error)

UpdateNodeDNSResolver 修改DNS Resolver

func (*NodeService) UpdateNodeIsInstalled

func (this *NodeService) UpdateNodeIsInstalled(ctx context.Context, req *pb.UpdateNodeIsInstalledRequest) (*pb.RPCSuccess, error)

UpdateNodeIsInstalled 修改节点安装状态

func (*NodeService) UpdateNodeLogin

func (this *NodeService) UpdateNodeLogin(ctx context.Context, req *pb.UpdateNodeLoginRequest) (*pb.RPCSuccess, error)

UpdateNodeLogin 修改节点登录信息

func (*NodeService) UpdateNodeRegionInfo added in v0.5.6

func (this *NodeService) UpdateNodeRegionInfo(ctx context.Context, req *pb.UpdateNodeRegionInfoRequest) (*pb.RPCSuccess, error)

UpdateNodeRegionInfo 修改节点区域信息

func (*NodeService) UpdateNodeStatus

func (this *NodeService) UpdateNodeStatus(ctx context.Context, req *pb.UpdateNodeStatusRequest) (*pb.RPCSuccess, error)

UpdateNodeStatus 更新节点状态

func (*NodeService) UpdateNodeSystem

func (this *NodeService) UpdateNodeSystem(ctx context.Context, req *pb.UpdateNodeSystemRequest) (*pb.RPCSuccess, error)

UpdateNodeSystem 修改节点系统信息

func (*NodeService) UpdateNodeUp

func (this *NodeService) UpdateNodeUp(ctx context.Context, req *pb.UpdateNodeUpRequest) (*pb.RPCSuccess, error)

UpdateNodeUp 设置节点上线状态

func (*NodeService) UpgradeNode

func (this *NodeService) UpgradeNode(ctx context.Context, req *pb.UpgradeNodeRequest) (*pb.UpgradeNodeResponse, error)

UpgradeNode 升级节点

type NodeTaskService

type NodeTaskService struct {
	BaseService
}

NodeTaskService 节点同步任务相关服务

func (*NodeTaskService) CountDoingNodeTasks

func (this *NodeTaskService) CountDoingNodeTasks(ctx context.Context, req *pb.CountDoingNodeTasksRequest) (*pb.RPCCountResponse, error)

CountDoingNodeTasks 计算正在执行的任务数量

func (*NodeTaskService) DeleteNodeTask

func (this *NodeTaskService) DeleteNodeTask(ctx context.Context, req *pb.DeleteNodeTaskRequest) (*pb.RPCSuccess, error)

DeleteNodeTask 删除任务

func (*NodeTaskService) DeleteNodeTasks

func (this *NodeTaskService) DeleteNodeTasks(ctx context.Context, req *pb.DeleteNodeTasksRequest) (*pb.RPCSuccess, error)

DeleteNodeTasks 批量删除任务

func (*NodeTaskService) ExistsNodeTasks

ExistsNodeTasks 检查是否有正在执行的任务

func (*NodeTaskService) FindNodeClusterTasks

FindNodeClusterTasks 获取所有正在同步的集群信息

func (*NodeTaskService) FindNodeTasks

FindNodeTasks 获取单节点同步任务

func (*NodeTaskService) FindNotifyingNodeTasks

FindNotifyingNodeTasks 查找需要通知的任务

func (*NodeTaskService) ReportNodeTaskDone

func (this *NodeTaskService) ReportNodeTaskDone(ctx context.Context, req *pb.ReportNodeTaskDoneRequest) (*pb.RPCSuccess, error)

ReportNodeTaskDone 报告同步任务结果

func (*NodeTaskService) UpdateNodeTasksNotified

func (this *NodeTaskService) UpdateNodeTasksNotified(ctx context.Context, req *pb.UpdateNodeTasksNotifiedRequest) (*pb.RPCSuccess, error)

UpdateNodeTasksNotified 设置任务已通知

type NodeThresholdService

type NodeThresholdService struct {
	BaseService
}

NodeThresholdService 节点阈值服务

func (*NodeThresholdService) CountAllEnabledNodeThresholds

func (this *NodeThresholdService) CountAllEnabledNodeThresholds(ctx context.Context, req *pb.CountAllEnabledNodeThresholdsRequest) (*pb.RPCCountResponse, error)

CountAllEnabledNodeThresholds 计算阈值数量

func (*NodeThresholdService) CreateNodeThreshold

CreateNodeThreshold 创建阈值

func (*NodeThresholdService) DeleteNodeThreshold

func (this *NodeThresholdService) DeleteNodeThreshold(ctx context.Context, req *pb.DeleteNodeThresholdRequest) (*pb.RPCSuccess, error)

DeleteNodeThreshold 删除阈值

func (*NodeThresholdService) FindAllEnabledNodeThresholds

FindAllEnabledNodeThresholds 查询阈值

func (*NodeThresholdService) FindEnabledNodeThreshold

FindEnabledNodeThreshold 查询单个阈值详情

func (*NodeThresholdService) UpdateNodeThreshold

func (this *NodeThresholdService) UpdateNodeThreshold(ctx context.Context, req *pb.UpdateNodeThresholdRequest) (*pb.RPCSuccess, error)

UpdateNodeThreshold 创建阈值

type NodeValueService

type NodeValueService struct {
	BaseService
}

func (*NodeValueService) CreateNodeValue

func (this *NodeValueService) CreateNodeValue(ctx context.Context, req *pb.CreateNodeValueRequest) (*pb.RPCSuccess, error)

CreateNodeValue 记录数据

func (*NodeValueService) ListNodeValues

ListNodeValues 读取数据

func (*NodeValueService) SumAllNodeValueStats

SumAllNodeValueStats 读取所有节点的最新数据

type NodeVersionCache

type NodeVersionCache struct {
	CacheMap map[int64]*utils.CacheMap // version => map
}

NodeVersionCache 节点版本缓存

type OriginService

type OriginService struct {
	BaseService
}

OriginService 源站相关管理

func (*OriginService) CreateOrigin

func (this *OriginService) CreateOrigin(ctx context.Context, req *pb.CreateOriginRequest) (*pb.CreateOriginResponse, error)

CreateOrigin 创建源站

func (*OriginService) FindEnabledOrigin

FindEnabledOrigin 查找单个源站信息

func (*OriginService) FindEnabledOriginConfig

FindEnabledOriginConfig 查找源站配置

func (*OriginService) UpdateOrigin

func (this *OriginService) UpdateOrigin(ctx context.Context, req *pb.UpdateOriginRequest) (*pb.RPCSuccess, error)

UpdateOrigin 修改源站

type PingService added in v0.5.8

type PingService struct {
	BaseService
}

PingService Ping服务 用来测试连接是否可用

func (*PingService) Ping added in v0.5.8

func (this *PingService) Ping(ctx context.Context, req *pb.PingRequest) (*pb.PingResponse, error)

Ping 发起Ping

type PlanService

type PlanService struct {
	BaseService
}

PlanService 套餐相关服务

func (*PlanService) CountAllEnabledPlans

func (this *PlanService) CountAllEnabledPlans(ctx context.Context, req *pb.CountAllEnabledPlansRequest) (*pb.RPCCountResponse, error)

CountAllEnabledPlans 计算套餐数量

func (*PlanService) CreatePlan

func (this *PlanService) CreatePlan(ctx context.Context, req *pb.CreatePlanRequest) (*pb.CreatePlanResponse, error)

CreatePlan 创建套餐

func (*PlanService) DeletePlan

func (this *PlanService) DeletePlan(ctx context.Context, req *pb.DeletePlanRequest) (*pb.RPCSuccess, error)

DeletePlan 删除套餐

func (*PlanService) FindEnabledPlan

func (this *PlanService) FindEnabledPlan(ctx context.Context, req *pb.FindEnabledPlanRequest) (*pb.FindEnabledPlanResponse, error)

FindEnabledPlan 查找单个套餐

func (*PlanService) ListEnabledPlans

func (this *PlanService) ListEnabledPlans(ctx context.Context, req *pb.ListEnabledPlansRequest) (*pb.ListEnabledPlansResponse, error)

ListEnabledPlans 列出单页套餐

func (*PlanService) SortPlans

func (this *PlanService) SortPlans(ctx context.Context, req *pb.SortPlansRequest) (*pb.RPCSuccess, error)

SortPlans 对套餐进行排序

func (*PlanService) UpdatePlan

func (this *PlanService) UpdatePlan(ctx context.Context, req *pb.UpdatePlanRequest) (*pb.RPCSuccess, error)

UpdatePlan 修改套餐

type RegionCityService

type RegionCityService struct {
	BaseService
}

RegionCityService 城市相关服务

func (*RegionCityService) FindAllEnabledRegionCities

FindAllEnabledRegionCities 查找所有城市 Deprecated

func (*RegionCityService) FindAllRegionCities added in v0.5.0

FindAllRegionCities 查找所有城市

func (*RegionCityService) FindAllRegionCitiesWithRegionProvinceId added in v0.5.0

FindAllRegionCitiesWithRegionProvinceId 查找某个省份的所有城市

func (*RegionCityService) FindEnabledRegionCity

FindEnabledRegionCity 查找单个城市信息 Deprecated

func (*RegionCityService) FindRegionCity added in v0.5.0

FindRegionCity 查找单个城市信息

func (*RegionCityService) UpdateRegionCityCustom added in v0.5.0

func (this *RegionCityService) UpdateRegionCityCustom(ctx context.Context, req *pb.UpdateRegionCityCustomRequest) (*pb.RPCSuccess, error)

UpdateRegionCityCustom 修改城市定制信息

type RegionCountryService

type RegionCountryService struct {
	BaseService
}

RegionCountryService 国家相关服务

func (*RegionCountryService) FindAllEnabledRegionCountries

FindAllEnabledRegionCountries 查找所有的国家列表 Deprecated

func (*RegionCountryService) FindAllRegionCountries added in v0.5.0

FindAllRegionCountries 查找所有的国家列表

func (*RegionCountryService) FindEnabledRegionCountry

FindEnabledRegionCountry 查找单个国家信息 Deprecated

func (*RegionCountryService) FindRegionCountry added in v0.5.0

FindRegionCountry 查找单个国家信息

func (*RegionCountryService) UpdateRegionCountryCustom added in v0.5.0

func (this *RegionCountryService) UpdateRegionCountryCustom(ctx context.Context, req *pb.UpdateRegionCountryCustomRequest) (*pb.RPCSuccess, error)

UpdateRegionCountryCustom 修改城市定制信息

type RegionProviderService

type RegionProviderService struct {
	BaseService
}

RegionProviderService ISP相关服务

func (*RegionProviderService) FindAllEnabledRegionProviders

FindAllEnabledRegionProviders 查找所有ISP Deprecated

func (*RegionProviderService) FindAllRegionProviders added in v0.5.0

FindAllRegionProviders 查找所有ISP

func (*RegionProviderService) FindEnabledRegionProvider

FindEnabledRegionProvider 查找单个ISP信息 Deprecated

func (*RegionProviderService) FindRegionProvider added in v0.5.0

FindRegionProvider 查找单个ISP信息

func (*RegionProviderService) UpdateRegionProviderCustom added in v0.5.0

func (this *RegionProviderService) UpdateRegionProviderCustom(ctx context.Context, req *pb.UpdateRegionProviderCustomRequest) (*pb.RPCSuccess, error)

UpdateRegionProviderCustom 修改城市定制信息

type RegionProvinceService

type RegionProvinceService struct {
	BaseService
}

RegionProvinceService 省份相关服务

func (*RegionProvinceService) FindAllEnabledRegionProvincesWithCountryId

FindAllEnabledRegionProvincesWithCountryId 查找所有省份 Deprecated

func (*RegionProvinceService) FindAllRegionProvincesWithRegionCountryId added in v0.5.0

FindAllRegionProvincesWithRegionCountryId 查找所有省份

func (*RegionProvinceService) FindEnabledRegionProvince

FindEnabledRegionProvince 查找单个省份信息 Deprecated

func (*RegionProvinceService) FindRegionProvince added in v0.5.0

FindRegionProvince 查找单个省份信息

func (*RegionProvinceService) UpdateRegionProvinceCustom added in v0.5.0

func (this *RegionProvinceService) UpdateRegionProvinceCustom(ctx context.Context, req *pb.UpdateRegionProvinceCustomRequest) (*pb.RPCSuccess, error)

UpdateRegionProvinceCustom 修改城市定制信息

type RegionTownService added in v0.5.0

type RegionTownService struct {
	BaseService
}

RegionTownService 区县相关服务

func (*RegionTownService) FindAllRegionTowns added in v0.5.0

FindAllRegionTowns 查找所有区县

func (*RegionTownService) FindAllRegionTownsWithRegionCityId added in v0.5.0

FindAllRegionTownsWithRegionCityId 查找某个城市的所有区县

func (*RegionTownService) FindRegionTown added in v0.5.0

FindRegionTown 查找单个区县信息

func (*RegionTownService) UpdateRegionTownCustom added in v0.5.0

func (this *RegionTownService) UpdateRegionTownCustom(ctx context.Context, req *pb.UpdateRegionTownCustomRequest) (*pb.RPCSuccess, error)

UpdateRegionTownCustom 修改区县定制信息

type ReverseProxyService

type ReverseProxyService struct {
	BaseService
}

func (*ReverseProxyService) CreateReverseProxy

CreateReverseProxy 创建反向代理

func (*ReverseProxyService) FindEnabledReverseProxy

FindEnabledReverseProxy 查找反向代理

func (*ReverseProxyService) FindEnabledReverseProxyConfig

FindEnabledReverseProxyConfig 查找反向代理配置

func (*ReverseProxyService) UpdateReverseProxy

func (this *ReverseProxyService) UpdateReverseProxy(ctx context.Context, req *pb.UpdateReverseProxyRequest) (*pb.RPCSuccess, error)

UpdateReverseProxy 修改是否启用

func (*ReverseProxyService) UpdateReverseProxyBackupOrigins

func (this *ReverseProxyService) UpdateReverseProxyBackupOrigins(ctx context.Context, req *pb.UpdateReverseProxyBackupOriginsRequest) (*pb.RPCSuccess, error)

UpdateReverseProxyBackupOrigins 修改备用源站信息

func (*ReverseProxyService) UpdateReverseProxyPrimaryOrigins

func (this *ReverseProxyService) UpdateReverseProxyPrimaryOrigins(ctx context.Context, req *pb.UpdateReverseProxyPrimaryOriginsRequest) (*pb.RPCSuccess, error)

UpdateReverseProxyPrimaryOrigins 修改主要源站信息

func (*ReverseProxyService) UpdateReverseProxyScheduling

func (this *ReverseProxyService) UpdateReverseProxyScheduling(ctx context.Context, req *pb.UpdateReverseProxySchedulingRequest) (*pb.RPCSuccess, error)

UpdateReverseProxyScheduling 修改反向代理调度算法

type SSLCertService

type SSLCertService struct {
	BaseService
}

SSLCertService SSL证书相关服务

func (*SSLCertService) CountAllSSLCertsWithOCSPError

func (this *SSLCertService) CountAllSSLCertsWithOCSPError(ctx context.Context, req *pb.CountAllSSLCertsWithOCSPErrorRequest) (*pb.RPCCountResponse, error)

CountAllSSLCertsWithOCSPError 计算有OCSP错误的证书数量

func (*SSLCertService) CountSSLCerts

func (this *SSLCertService) CountSSLCerts(ctx context.Context, req *pb.CountSSLCertRequest) (*pb.RPCCountResponse, error)

CountSSLCerts 计算匹配的Cert数量

func (*SSLCertService) CreateSSLCert

CreateSSLCert 创建Cert

func (*SSLCertService) DeleteSSLCert

func (this *SSLCertService) DeleteSSLCert(ctx context.Context, req *pb.DeleteSSLCertRequest) (*pb.RPCSuccess, error)

DeleteSSLCert 删除证书

func (*SSLCertService) FindEnabledSSLCertConfig

FindEnabledSSLCertConfig 查找证书配置

func (*SSLCertService) IgnoreSSLCertsWithOCSPError

func (this *SSLCertService) IgnoreSSLCertsWithOCSPError(ctx context.Context, req *pb.IgnoreSSLCertsWithOCSPErrorRequest) (*pb.RPCSuccess, error)

IgnoreSSLCertsWithOCSPError 忽略一组OCSP证书错误

func (*SSLCertService) ListSSLCerts

ListSSLCerts 列出单页匹配的Cert

func (*SSLCertService) ListSSLCertsWithOCSPError

ListSSLCertsWithOCSPError 列出有OCSP错误的证书

func (*SSLCertService) ListUpdatedSSLCertOCSP

ListUpdatedSSLCertOCSP 读取证书的OCSP

func (*SSLCertService) ResetAllSSLCertsWithOCSPError

func (this *SSLCertService) ResetAllSSLCertsWithOCSPError(ctx context.Context, req *pb.ResetAllSSLCertsWithOCSPErrorRequest) (*pb.RPCSuccess, error)

ResetAllSSLCertsWithOCSPError 重置所有证书OCSP错误状态

func (*SSLCertService) ResetSSLCertsWithOCSPError

func (this *SSLCertService) ResetSSLCertsWithOCSPError(ctx context.Context, req *pb.ResetSSLCertsWithOCSPErrorRequest) (*pb.RPCSuccess, error)

ResetSSLCertsWithOCSPError 重置一组证书OCSP错误状态

func (*SSLCertService) UpdateSSLCert

func (this *SSLCertService) UpdateSSLCert(ctx context.Context, req *pb.UpdateSSLCertRequest) (*pb.RPCSuccess, error)

UpdateSSLCert 修改Cert

type SSLPolicyService

type SSLPolicyService struct {
	BaseService
}

func (*SSLPolicyService) CreateSSLPolicy

CreateSSLPolicy 创建Policy

func (*SSLPolicyService) FindEnabledSSLPolicyConfig

FindEnabledSSLPolicyConfig 查找Policy

func (*SSLPolicyService) UpdateSSLPolicy

func (this *SSLPolicyService) UpdateSSLPolicy(ctx context.Context, req *pb.UpdateSSLPolicyRequest) (*pb.RPCSuccess, error)

UpdateSSLPolicy 修改Policy

type ServerBandwidthStatService added in v0.4.9

type ServerBandwidthStatService struct {
	BaseService
}

func (*ServerBandwidthStatService) FindDailyServerBandwidthStats added in v0.5.2

FindDailyServerBandwidthStats 获取最近N天峰值带宽

func (*ServerBandwidthStatService) FindDailyServerBandwidthStatsBetweenDays added in v0.5.6

FindDailyServerBandwidthStatsBetweenDays 读取日期段内的带宽数据

func (*ServerBandwidthStatService) FindHourlyServerBandwidthStats added in v0.5.2

FindHourlyServerBandwidthStats 获取最近N小时峰值带宽

func (*ServerBandwidthStatService) FindServerBandwidthStats added in v0.5.0

FindServerBandwidthStats 获取服务的峰值带宽

func (*ServerBandwidthStatService) UploadServerBandwidthStats added in v0.4.9

func (this *ServerBandwidthStatService) UploadServerBandwidthStats(ctx context.Context, req *pb.UploadServerBandwidthStatsRequest) (*pb.RPCSuccess, error)

UploadServerBandwidthStats 上传带宽统计

type ServerClientBrowserMonthlyStatService

type ServerClientBrowserMonthlyStatService struct {
	BaseService
}

ServerClientBrowserMonthlyStatService 操作系统统计

func (*ServerClientBrowserMonthlyStatService) FindTopServerClientBrowserMonthlyStats

FindTopServerClientBrowserMonthlyStats 查找前N个操作系统

type ServerClientSystemMonthlyStatService

type ServerClientSystemMonthlyStatService struct {
	BaseService
}

ServerClientSystemMonthlyStatService 操作系统统计

func (*ServerClientSystemMonthlyStatService) FindTopServerClientSystemMonthlyStats

FindTopServerClientSystemMonthlyStats 查找前N个操作系统

type ServerDailyStatService

type ServerDailyStatService struct {
	BaseService
}

ServerDailyStatService 服务统计相关服务

func (*ServerDailyStatService) FindLatestServerDailyStats

FindLatestServerDailyStats 按天读取统计数据

func (*ServerDailyStatService) FindLatestServerHourlyStats

FindLatestServerHourlyStats 按小时读取统计数据

func (*ServerDailyStatService) FindLatestServerMinutelyStats

FindLatestServerMinutelyStats 按分钟读取统计数据

func (*ServerDailyStatService) FindServer5MinutelyStatsWithDay added in v0.5.3

FindServer5MinutelyStatsWithDay 读取某天的5分钟间隔流量

func (*ServerDailyStatService) FindServerDailyStatsBetweenDays added in v0.5.6

FindServerDailyStatsBetweenDays 读取日期段内的流量数据

func (*ServerDailyStatService) SumCurrentServerDailyStats

SumCurrentServerDailyStats 查找单个服务当前统计数据

func (*ServerDailyStatService) SumServerDailyStats

SumServerDailyStats 计算单个服务的日统计

func (*ServerDailyStatService) SumServerMonthlyStats

SumServerMonthlyStats 计算单个服务的月统计

func (*ServerDailyStatService) UploadServerDailyStats

func (this *ServerDailyStatService) UploadServerDailyStats(ctx context.Context, req *pb.UploadServerDailyStatsRequest) (*pb.RPCSuccess, error)

UploadServerDailyStats 上传统计

type ServerDomainHourlyStatService

type ServerDomainHourlyStatService struct {
	BaseService
}

ServerDomainHourlyStatService 服务域名按小时统计服务

func (*ServerDomainHourlyStatService) ListTopServerDomainStatsWithServerId

ListTopServerDomainStatsWithServerId 读取域名排行

type ServerGroupService

type ServerGroupService struct {
	BaseService
}

ServerGroupService 服务分组相关服务

func (*ServerGroupService) CreateServerGroup

CreateServerGroup 创建分组

func (*ServerGroupService) DeleteServerGroup

func (this *ServerGroupService) DeleteServerGroup(ctx context.Context, req *pb.DeleteServerGroupRequest) (*pb.RPCSuccess, error)

DeleteServerGroup 删除分组

func (*ServerGroupService) FindAllEnabledServerGroups

FindAllEnabledServerGroups 查询所有分组

func (*ServerGroupService) FindAndInitServerGroupHTTPReverseProxyConfig

FindAndInitServerGroupHTTPReverseProxyConfig 查找HTTP反向代理设置

func (*ServerGroupService) FindAndInitServerGroupTCPReverseProxyConfig

FindAndInitServerGroupTCPReverseProxyConfig 查找反向代理设置

func (*ServerGroupService) FindAndInitServerGroupUDPReverseProxyConfig

FindAndInitServerGroupUDPReverseProxyConfig 查找反向代理设置

func (*ServerGroupService) FindAndInitServerGroupWebConfig

FindAndInitServerGroupWebConfig 初始化Web设置

func (*ServerGroupService) FindEnabledServerGroup

FindEnabledServerGroup 查找单个分组信息

func (*ServerGroupService) FindEnabledServerGroupConfigInfo

FindEnabledServerGroupConfigInfo 取得分组的配置概要信息

func (*ServerGroupService) UpdateServerGroup

func (this *ServerGroupService) UpdateServerGroup(ctx context.Context, req *pb.UpdateServerGroupRequest) (*pb.RPCSuccess, error)

UpdateServerGroup 修改分组

func (*ServerGroupService) UpdateServerGroupHTTPReverseProxy

func (this *ServerGroupService) UpdateServerGroupHTTPReverseProxy(ctx context.Context, req *pb.UpdateServerGroupHTTPReverseProxyRequest) (*pb.RPCSuccess, error)

UpdateServerGroupHTTPReverseProxy 修改服务的反向代理设置

func (*ServerGroupService) UpdateServerGroupOrders

func (this *ServerGroupService) UpdateServerGroupOrders(ctx context.Context, req *pb.UpdateServerGroupOrdersRequest) (*pb.RPCSuccess, error)

UpdateServerGroupOrders 修改分组排序

func (*ServerGroupService) UpdateServerGroupTCPReverseProxy

func (this *ServerGroupService) UpdateServerGroupTCPReverseProxy(ctx context.Context, req *pb.UpdateServerGroupTCPReverseProxyRequest) (*pb.RPCSuccess, error)

UpdateServerGroupTCPReverseProxy 修改服务的反向代理设置

func (*ServerGroupService) UpdateServerGroupUDPReverseProxy

func (this *ServerGroupService) UpdateServerGroupUDPReverseProxy(ctx context.Context, req *pb.UpdateServerGroupUDPReverseProxyRequest) (*pb.RPCSuccess, error)

UpdateServerGroupUDPReverseProxy 修改服务的反向代理设置

type ServerHTTPFirewallDailyStatService

type ServerHTTPFirewallDailyStatService struct {
	BaseService
}

ServerHTTPFirewallDailyStatService WAF统计

func (*ServerHTTPFirewallDailyStatService) ComposeServerHTTPFirewallDashboard

ComposeServerHTTPFirewallDashboard 组合Dashboard

type ServerRegionCityMonthlyStatService

type ServerRegionCityMonthlyStatService struct {
	BaseService
}

城市月份统计

func (*ServerRegionCityMonthlyStatService) FindTopServerRegionCityMonthlyStats

查找前N个城市

type ServerRegionCountryMonthlyStatService

type ServerRegionCountryMonthlyStatService struct {
	BaseService
}

地区月份统计

func (*ServerRegionCountryMonthlyStatService) FindTopServerRegionCountryMonthlyStats

查找前N个地区

type ServerRegionProviderMonthlyStatService

type ServerRegionProviderMonthlyStatService struct {
	BaseService
}

运营商月份统计

func (*ServerRegionProviderMonthlyStatService) FindTopServerRegionProviderMonthlyStats

查找前N个运营商

type ServerRegionProvinceMonthlyStatService

type ServerRegionProvinceMonthlyStatService struct {
	BaseService
}

省份月份统计

func (*ServerRegionProvinceMonthlyStatService) FindTopServerRegionProvinceMonthlyStats

查找前N个省份

type ServerService

type ServerService struct {
	BaseService
}

func (*ServerService) CheckServerNameDuplicationInNodeCluster

CheckServerNameDuplicationInNodeCluster 检查域名是否已经存在

func (*ServerService) CheckUserServer

func (this *ServerService) CheckUserServer(ctx context.Context, req *pb.CheckUserServerRequest) (*pb.RPCSuccess, error)

CheckUserServer 检查服务是否属于某个用户

func (*ServerService) ComposeAllUserServersConfig added in v0.5.6

ComposeAllUserServersConfig 查找某个用户下的服务配置

func (*ServerService) ComposeServerConfig

ComposeServerConfig 获取服务配置

func (*ServerService) CountAllEnabledServersMatch

func (this *ServerService) CountAllEnabledServersMatch(ctx context.Context, req *pb.CountAllEnabledServersMatchRequest) (*pb.RPCCountResponse, error)

CountAllEnabledServersMatch 计算服务数量

func (*ServerService) CountAllEnabledServersWithNodeClusterId

func (this *ServerService) CountAllEnabledServersWithNodeClusterId(ctx context.Context, req *pb.CountAllEnabledServersWithNodeClusterIdRequest) (*pb.RPCCountResponse, error)

CountAllEnabledServersWithNodeClusterId 计算运行在某个集群上的所有服务数量

func (*ServerService) CountAllEnabledServersWithSSLCertId

func (this *ServerService) CountAllEnabledServersWithSSLCertId(ctx context.Context, req *pb.CountAllEnabledServersWithSSLCertIdRequest) (*pb.RPCCountResponse, error)

CountAllEnabledServersWithSSLCertId 计算使用某个SSL证书的服务数量

func (*ServerService) CountAllEnabledServersWithServerGroupId

func (this *ServerService) CountAllEnabledServersWithServerGroupId(ctx context.Context, req *pb.CountAllEnabledServersWithServerGroupIdRequest) (*pb.RPCCountResponse, error)

CountAllEnabledServersWithServerGroupId 计算使用某个分组的服务数量

func (*ServerService) CreateServer

func (this *ServerService) CreateServer(ctx context.Context, req *pb.CreateServerRequest) (*pb.CreateServerResponse, error)

CreateServer 创建服务

func (*ServerService) DeleteServer

func (this *ServerService) DeleteServer(ctx context.Context, req *pb.DeleteServerRequest) (*pb.RPCSuccess, error)

DeleteServer 禁用某服务

func (*ServerService) FindAllEnabledServerNamesWithUserId

FindAllEnabledServerNamesWithUserId 查找一个用户下的所有域名列表

func (*ServerService) FindAllEnabledServersDNSWithNodeClusterId

FindAllEnabledServersDNSWithNodeClusterId 取得某个集群下的所有服务相关的DNS

func (*ServerService) FindAllEnabledServersWithSSLCertId

FindAllEnabledServersWithSSLCertId 查找使用某个SSL证书的所有服务

func (*ServerService) FindAllUserServers added in v0.5.6

FindAllUserServers 查找一个用户下的所有服务

func (*ServerService) FindAndInitServerReverseProxyConfig

FindAndInitServerReverseProxyConfig 查找反向代理设置

func (*ServerService) FindAndInitServerWebConfig

FindAndInitServerWebConfig 初始化Web设置

func (*ServerService) FindEnabledServer

FindEnabledServer 查找单个服务

func (*ServerService) FindEnabledServerConfig

FindEnabledServerConfig 查找服务配置

func (*ServerService) FindEnabledServerDNS

FindEnabledServerDNS 查找单个服务的DNS信息

func (*ServerService) FindEnabledServerTrafficLimit

FindEnabledServerTrafficLimit 查找流量限制

func (*ServerService) FindEnabledServerType

FindEnabledServerType 查找服务的服务类型

func (*ServerService) FindEnabledServerUAM

FindEnabledServerUAM 查找服务UAM设置

func (*ServerService) FindEnabledUserServerBasic

FindEnabledUserServerBasic 查找服务基本信息

func (*ServerService) FindLatestServers

FindLatestServers 查找最近访问的服务

func (*ServerService) FindNearbyServers

FindNearbyServers 查找某个服务附近的服务

func (*ServerService) FindServerIdWithDNSName added in v0.5.2

FindServerIdWithDNSName 使用CNAME查找服务

func (*ServerService) FindServerNames

FindServerNames 查找服务的域名设置

func (*ServerService) FindServerUserPlan

FindServerUserPlan 获取服务套餐信息

func (*ServerService) ListEnabledServersMatch

ListEnabledServersMatch 列出单页服务

func (*ServerService) NotifyServersChange

NotifyServersChange 通知更新

func (*ServerService) PurgeServerCache

PurgeServerCache 清除缓存

func (*ServerService) RegenerateServerDNSName added in v0.5.2

func (this *ServerService) RegenerateServerDNSName(ctx context.Context, req *pb.RegenerateServerDNSNameRequest) (*pb.RPCSuccess, error)

RegenerateServerDNSName 重新生成CNAME

func (*ServerService) UpdateEnabledUserServerBasic

func (this *ServerService) UpdateEnabledUserServerBasic(ctx context.Context, req *pb.UpdateEnabledUserServerBasicRequest) (*pb.RPCSuccess, error)

UpdateEnabledUserServerBasic 修改用户服务基本信息

func (*ServerService) UpdateServerBasic

func (this *ServerService) UpdateServerBasic(ctx context.Context, req *pb.UpdateServerBasicRequest) (*pb.RPCSuccess, error)

UpdateServerBasic 修改服务基本信息

func (*ServerService) UpdateServerDNS

func (this *ServerService) UpdateServerDNS(ctx context.Context, req *pb.UpdateServerDNSRequest) (*pb.RPCSuccess, error)

UpdateServerDNS 修改服务的DNS相关设置

func (*ServerService) UpdateServerDNSName added in v0.5.2

func (this *ServerService) UpdateServerDNSName(ctx context.Context, req *pb.UpdateServerDNSNameRequest) (*pb.RPCSuccess, error)

UpdateServerDNSName 修改服务的CNAME

func (*ServerService) UpdateServerGroupIds added in v0.4.9

func (this *ServerService) UpdateServerGroupIds(ctx context.Context, req *pb.UpdateServerGroupIdsRequest) (*pb.RPCSuccess, error)

UpdateServerGroupIds 修改服务所在分组

func (*ServerService) UpdateServerHTTP

func (this *ServerService) UpdateServerHTTP(ctx context.Context, req *pb.UpdateServerHTTPRequest) (*pb.RPCSuccess, error)

UpdateServerHTTP 修改HTTP服务

func (*ServerService) UpdateServerHTTPS

func (this *ServerService) UpdateServerHTTPS(ctx context.Context, req *pb.UpdateServerHTTPSRequest) (*pb.RPCSuccess, error)

UpdateServerHTTPS 修改HTTPS服务

func (*ServerService) UpdateServerIsOn

func (this *ServerService) UpdateServerIsOn(ctx context.Context, req *pb.UpdateServerIsOnRequest) (*pb.RPCSuccess, error)

UpdateServerIsOn 修改服务是否启用

func (*ServerService) UpdateServerNames

func (this *ServerService) UpdateServerNames(ctx context.Context, req *pb.UpdateServerNamesRequest) (*pb.RPCSuccess, error)

UpdateServerNames 修改域名服务

func (*ServerService) UpdateServerNamesAuditing

func (this *ServerService) UpdateServerNamesAuditing(ctx context.Context, req *pb.UpdateServerNamesAuditingRequest) (*pb.RPCSuccess, error)

UpdateServerNamesAuditing 审核服务的域名设置

func (*ServerService) UpdateServerReverseProxy

func (this *ServerService) UpdateServerReverseProxy(ctx context.Context, req *pb.UpdateServerReverseProxyRequest) (*pb.RPCSuccess, error)

UpdateServerReverseProxy 修改反向代理服务

func (*ServerService) UpdateServerTCP

func (this *ServerService) UpdateServerTCP(ctx context.Context, req *pb.UpdateServerTCPRequest) (*pb.RPCSuccess, error)

UpdateServerTCP 修改TCP服务

func (*ServerService) UpdateServerTLS

func (this *ServerService) UpdateServerTLS(ctx context.Context, req *pb.UpdateServerTLSRequest) (*pb.RPCSuccess, error)

UpdateServerTLS 修改TLS服务

func (*ServerService) UpdateServerTrafficLimit

func (this *ServerService) UpdateServerTrafficLimit(ctx context.Context, req *pb.UpdateServerTrafficLimitRequest) (*pb.RPCSuccess, error)

UpdateServerTrafficLimit 设置流量限制

func (*ServerService) UpdateServerUAM

func (this *ServerService) UpdateServerUAM(ctx context.Context, req *pb.UpdateServerUAMRequest) (*pb.RPCSuccess, error)

UpdateServerUAM 修改服务UAM设置

func (*ServerService) UpdateServerUDP

func (this *ServerService) UpdateServerUDP(ctx context.Context, req *pb.UpdateServerUDPRequest) (*pb.RPCSuccess, error)

UpdateServerUDP 修改UDP服务

func (*ServerService) UpdateServerUnix

func (this *ServerService) UpdateServerUnix(ctx context.Context, req *pb.UpdateServerUnixRequest) (*pb.RPCSuccess, error)

UpdateServerUnix 修改Unix服务

func (*ServerService) UpdateServerUserPlan

func (this *ServerService) UpdateServerUserPlan(ctx context.Context, req *pb.UpdateServerUserPlanRequest) (*pb.RPCSuccess, error)

UpdateServerUserPlan 修改服务套餐

func (*ServerService) UpdateServerWeb

func (this *ServerService) UpdateServerWeb(ctx context.Context, req *pb.UpdateServerWebRequest) (*pb.RPCSuccess, error)

UpdateServerWeb 修改Web服务

func (*ServerService) UploadServerHTTPRequestStat

func (this *ServerService) UploadServerHTTPRequestStat(ctx context.Context, req *pb.UploadServerHTTPRequestStatRequest) (*pb.RPCSuccess, error)

UploadServerHTTPRequestStat 上传待统计数据

type ServerStatBoardChartService

type ServerStatBoardChartService struct {
	BaseService
}

ServerStatBoardChartService 统计看板条目

func (*ServerStatBoardChartService) DisableServerStatBoardChart

func (this *ServerStatBoardChartService) DisableServerStatBoardChart(ctx context.Context, req *pb.DisableServerStatBoardChartRequest) (*pb.RPCSuccess, error)

DisableServerStatBoardChart 取消图表

func (*ServerStatBoardChartService) EnableServerStatBoardChart

func (this *ServerStatBoardChartService) EnableServerStatBoardChart(ctx context.Context, req *pb.EnableServerStatBoardChartRequest) (*pb.RPCSuccess, error)

EnableServerStatBoardChart 添加图表

func (*ServerStatBoardChartService) FindAllEnabledServerStatBoardCharts

FindAllEnabledServerStatBoardCharts 读取看板中的图表

type ServerStatBoardService

type ServerStatBoardService struct {
	BaseService
}

ServerStatBoardService 统计看板条目

func (*ServerStatBoardService) ComposeServerStatBoard

ComposeServerStatBoard 组合服务看板数据

func (*ServerStatBoardService) ComposeServerStatNodeBoard

ComposeServerStatNodeBoard 组合节点看板数据

func (*ServerStatBoardService) ComposeServerStatNodeClusterBoard

ComposeServerStatNodeClusterBoard 组合看板数据

func (*ServerStatBoardService) FindAllEnabledServerStatBoards

FindAllEnabledServerStatBoards 读取所有看板

type SysLockerService

type SysLockerService struct {
	BaseService
}

SysLockerService 互斥锁管理

func (*SysLockerService) SysLockerLock

SysLockerLock 获得锁

func (*SysLockerService) SysLockerUnlock

func (this *SysLockerService) SysLockerUnlock(ctx context.Context, req *pb.SysLockerUnlockRequest) (*pb.RPCSuccess, error)

SysLockerUnlock 释放锁

type SysSettingService

type SysSettingService struct {
	BaseService
}

func (*SysSettingService) ReadSysSetting

ReadSysSetting 读取配置

func (*SysSettingService) UpdateSysSetting

func (this *SysSettingService) UpdateSysSetting(ctx context.Context, req *pb.UpdateSysSettingRequest) (*pb.RPCSuccess, error)

UpdateSysSetting 更改配置

type TrafficDailyStatService

type TrafficDailyStatService struct {
	BaseService
}

TrafficDailyStatService 按日统计服务

func (*TrafficDailyStatService) FindTrafficDailyStatWithDay

FindTrafficDailyStatWithDay 查找某日统计

type TrafficStat

type TrafficStat struct {
	Bytes                int64
	CachedBytes          int64
	CountRequests        int64
	CountCachedRequests  int64
	CountAttackRequests  int64
	AttackBytes          int64
	PlanId               int64
	CheckingTrafficLimit bool
}

type UserAccessKeyService

type UserAccessKeyService struct {
	BaseService
}

UserAccessKeyService 用户AccessKey相关服务

func (*UserAccessKeyService) CountAllEnabledUserAccessKeys

func (this *UserAccessKeyService) CountAllEnabledUserAccessKeys(ctx context.Context, req *pb.CountAllEnabledUserAccessKeysRequest) (*pb.RPCCountResponse, error)

CountAllEnabledUserAccessKeys 计算AccessKey数量

func (*UserAccessKeyService) CreateUserAccessKey

CreateUserAccessKey 创建AccessKey

func (*UserAccessKeyService) DeleteUserAccessKey

func (this *UserAccessKeyService) DeleteUserAccessKey(ctx context.Context, req *pb.DeleteUserAccessKeyRequest) (*pb.RPCSuccess, error)

DeleteUserAccessKey 删除AccessKey

func (*UserAccessKeyService) FindAllEnabledUserAccessKeys

FindAllEnabledUserAccessKeys 查找所有的AccessKey

func (*UserAccessKeyService) UpdateUserAccessKeyIsOn

func (this *UserAccessKeyService) UpdateUserAccessKeyIsOn(ctx context.Context, req *pb.UpdateUserAccessKeyIsOnRequest) (*pb.RPCSuccess, error)

UpdateUserAccessKeyIsOn 设置是否启用AccessKey

type UserIdentityService added in v0.4.9

type UserIdentityService struct {
	BaseService
}

UserIdentityService 用户身份认证服务

func (*UserIdentityService) CancelUserIdentity added in v0.4.9

func (this *UserIdentityService) CancelUserIdentity(ctx context.Context, req *pb.CancelUserIdentityRequest) (*pb.RPCSuccess, error)

CancelUserIdentity 取消提交身份审核认证信息

func (*UserIdentityService) CheckUserIdentityIsSubmitted added in v0.4.10

CheckUserIdentityIsSubmitted 检查是否正在审核中

func (*UserIdentityService) CreateUserIdentity added in v0.4.9

CreateUserIdentity 创建身份认证信息

func (*UserIdentityService) FindEnabledUserIdentity added in v0.4.10

FindEnabledUserIdentity 查找单个身份认证信息

func (*UserIdentityService) FindEnabledUserIdentityWithOrgType added in v0.4.10

FindEnabledUserIdentityWithOrgType 查看最新的身份认证信息

func (*UserIdentityService) RejectUserIdentity added in v0.4.9

func (this *UserIdentityService) RejectUserIdentity(ctx context.Context, req *pb.RejectUserIdentityRequest) (*pb.RPCSuccess, error)

RejectUserIdentity 拒绝用户身份认证信息

func (*UserIdentityService) ResetUserIdentity added in v0.4.10

func (this *UserIdentityService) ResetUserIdentity(ctx context.Context, req *pb.ResetUserIdentityRequest) (*pb.RPCSuccess, error)

ResetUserIdentity 重置提交身份审核认证信息

func (*UserIdentityService) SubmitUserIdentity added in v0.4.9

func (this *UserIdentityService) SubmitUserIdentity(ctx context.Context, req *pb.SubmitUserIdentityRequest) (*pb.RPCSuccess, error)

SubmitUserIdentity 提交审核身份认证信息

func (*UserIdentityService) UpdateUserIdentity added in v0.4.9

func (this *UserIdentityService) UpdateUserIdentity(ctx context.Context, req *pb.UpdateUserIdentityRequest) (*pb.RPCSuccess, error)

UpdateUserIdentity 修改身份认证信息

func (*UserIdentityService) VerifyUserIdentity added in v0.4.9

func (this *UserIdentityService) VerifyUserIdentity(ctx context.Context, req *pb.VerifyUserIdentityRequest) (*pb.RPCSuccess, error)

VerifyUserIdentity 通过用户身份认证信息

type UserPlanService

type UserPlanService struct {
	BaseService
}

UserPlanService 用户购买的套餐

func (*UserPlanService) BuyUserPlan

CreateUserPlan 添加已购套餐

func (*UserPlanService) CountAllEnabledUserPlans

func (this *UserPlanService) CountAllEnabledUserPlans(ctx context.Context, req *pb.CountAllEnabledUserPlansRequest) (*pb.RPCCountResponse, error)

CountAllEnabledUserPlans 计算已购套餐数

func (*UserPlanService) DeleteUserPlan

func (this *UserPlanService) DeleteUserPlan(ctx context.Context, req *pb.DeleteUserPlanRequest) (*pb.RPCSuccess, error)

DeleteUserPlan 删除已购套餐

func (*UserPlanService) FindAllEnabledUserPlansForServer

FindAllEnabledUserPlansForServer 查找所有服务可用的套餐

func (*UserPlanService) FindEnabledUserPlan

FindEnabledUserPlan 查找单个已购套餐信息

func (*UserPlanService) ListEnabledUserPlans

ListEnabledUserPlans 列出单页已购套餐

func (*UserPlanService) RenewUserPlan

func (this *UserPlanService) RenewUserPlan(ctx context.Context, req *pb.RenewUserPlanRequest) (*pb.RPCSuccess, error)

RenewUserPlan 续费套餐

func (*UserPlanService) UpdateUserPlan

func (this *UserPlanService) UpdateUserPlan(ctx context.Context, req *pb.UpdateUserPlanRequest) (*pb.RPCSuccess, error)

UpdateUserPlan 修改已购套餐

type UserService

type UserService struct {
	BaseService
}

UserService 用户相关服务

func (*UserService) CheckUserOTPWithUsername added in v0.4.10

CheckUserOTPWithUsername 检查是否需要输入OTP

func (*UserService) CheckUserServersState added in v0.5.6

CheckUserServersState 检查用户服务可用状态

func (*UserService) CheckUserUsername

CheckUserUsername 检查用户名是否存在

func (*UserService) ComposeUserDashboard

ComposeUserDashboard 取得用户Dashboard数据

func (*UserService) ComposeUserGlobalBoard

ComposeUserGlobalBoard 组合全局的看板数据

func (*UserService) CountAllEnabledUsers

func (this *UserService) CountAllEnabledUsers(ctx context.Context, req *pb.CountAllEnabledUsersRequest) (*pb.RPCCountResponse, error)

CountAllEnabledUsers 计算用户数量

func (*UserService) CreateUser

func (this *UserService) CreateUser(ctx context.Context, req *pb.CreateUserRequest) (*pb.CreateUserResponse, error)

CreateUser 创建用户

func (*UserService) DeleteUser

func (this *UserService) DeleteUser(ctx context.Context, req *pb.DeleteUserRequest) (*pb.RPCSuccess, error)

DeleteUser 删除用户

func (*UserService) FindAllUserFeatureDefinitions

FindAllUserFeatureDefinitions 获取所有的功能定义

func (*UserService) FindEnabledUser

func (this *UserService) FindEnabledUser(ctx context.Context, req *pb.FindEnabledUserRequest) (*pb.FindEnabledUserResponse, error)

FindEnabledUser 查询单个用户信息

func (*UserService) FindUserFeatures

func (this *UserService) FindUserFeatures(ctx context.Context, req *pb.FindUserFeaturesRequest) (*pb.FindUserFeaturesResponse, error)

FindUserFeatures 获取用户所有的功能列表

func (*UserService) FindUserNodeClusterId

FindUserNodeClusterId 获取用户所在的集群ID

func (*UserService) FindUserPriceInfo added in v0.5.6

FindUserPriceInfo 读取用户计费信息

func (*UserService) ListEnabledUsers

func (this *UserService) ListEnabledUsers(ctx context.Context, req *pb.ListEnabledUsersRequest) (*pb.ListEnabledUsersResponse, error)

ListEnabledUsers 列出单页用户

func (*UserService) LoginUser

func (this *UserService) LoginUser(ctx context.Context, req *pb.LoginUserRequest) (*pb.LoginUserResponse, error)

LoginUser 登录

func (*UserService) RegisterUser

func (this *UserService) RegisterUser(ctx context.Context, req *pb.RegisterUserRequest) (*pb.RPCSuccess, error)

RegisterUser 注册用户

func (*UserService) RenewUserServersState added in v0.5.6

RenewUserServersState 更新用户服务可用状态

func (*UserService) UpdateAllUsersFeatures added in v0.5.2

func (this *UserService) UpdateAllUsersFeatures(ctx context.Context, req *pb.UpdateAllUsersFeaturesRequest) (*pb.RPCSuccess, error)

UpdateAllUsersFeatures 设置所有用户能使用的功能

func (*UserService) UpdateUser

func (this *UserService) UpdateUser(ctx context.Context, req *pb.UpdateUserRequest) (*pb.RPCSuccess, error)

UpdateUser 修改用户

func (*UserService) UpdateUserFeatures

func (this *UserService) UpdateUserFeatures(ctx context.Context, req *pb.UpdateUserFeaturesRequest) (*pb.RPCSuccess, error)

UpdateUserFeatures 设置用户能使用的功能

func (*UserService) UpdateUserInfo

func (this *UserService) UpdateUserInfo(ctx context.Context, req *pb.UpdateUserInfoRequest) (*pb.RPCSuccess, error)

UpdateUserInfo 修改用户基本信息

func (*UserService) UpdateUserLogin

func (this *UserService) UpdateUserLogin(ctx context.Context, req *pb.UpdateUserLoginRequest) (*pb.RPCSuccess, error)

UpdateUserLogin 修改用户登录信息

func (*UserService) UpdateUserPricePeriod added in v0.5.6

func (this *UserService) UpdateUserPricePeriod(ctx context.Context, req *pb.UpdateUserPricePeriodRequest) (*pb.RPCSuccess, error)

UpdateUserPricePeriod 修改用户计费周期

func (*UserService) UpdateUserPriceType added in v0.5.6

func (this *UserService) UpdateUserPriceType(ctx context.Context, req *pb.UpdateUserPriceTypeRequest) (*pb.RPCSuccess, error)

UpdateUserPriceType 修改用户计费方式

func (*UserService) VerifyUser

func (this *UserService) VerifyUser(ctx context.Context, req *pb.VerifyUserRequest) (*pb.RPCSuccess, error)

VerifyUser 审核用户

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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