Documentation
¶
Overview ¶
Package udbproxy include resources of ucloud udbproxy product
See also
- API: https://docs.ucloud.cn/api/udbproxy-api/index
- Product: https://www.ucloud.cn/site/product/udbproxy.html
for detail.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListUDBProxyClientRequest ¶
type ListUDBProxyClientRequest struct {
request.CommonBase
// 代理ID
UDBProxyID *string `required:"true"`
}
ListUDBProxyClientRequest is request schema for ListUDBProxyClient action
type ListUDBProxyClientResponse ¶
type ListUDBProxyClientResponse struct {
response.CommonBase
// 代理节点客户端IP连接信息
NodeClientInfos []NodeClientInfo
// 代理ID
UDBProxyID string
}
ListUDBProxyClientResponse is response schema for ListUDBProxyClient action
type NodeClientInfo ¶
type NodeClientInfo struct {
// 代理节点ID
ID string
// 代理节点IP
IP string
// 客户端IP连接信息
Records []ProxyProcesslist
}
NodeClientInfo - 代理节点来源IP信息
type ProxyProcesslist ¶ added in v0.21.50
type ProxyProcesslist struct {
// 代理连接DB地址
ClientHost string
// 显示当前连接的执行的命令
Command string
// 当前执行的命令是在哪一个数据库上。如果没有指定数据库,则该值为 NULL
DB string
// 数据库资源ID
DBID string
// 代理连接DB地址
Host string
// 当前连接DB进程ID
ID int
// 一般记录的是线程执行的语句
Info string
// 数据库角色(主库/从库)
Role string
// 线程的状态,和 Command 对应
State string
// 表示该线程处于当前状态的时间
Time int
// 启动这个线程的用户
User string
}
ProxyProcesslist - 连接代理信息
type UDBProxyClient ¶
UDBProxyClient is the client of UDBProxy
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *UDBProxyClient
NewClient will return a instance of UDBProxyClient
func (*UDBProxyClient) ListUDBProxyClient ¶
func (c *UDBProxyClient) ListUDBProxyClient(req *ListUDBProxyClientRequest) (*ListUDBProxyClientResponse, error)
API: ListUDBProxyClient
查询代理客户端连接IP信息(实时)
func (*UDBProxyClient) NewListUDBProxyClientRequest ¶
func (c *UDBProxyClient) NewListUDBProxyClientRequest() *ListUDBProxyClientRequest
NewListUDBProxyClientRequest will create request of ListUDBProxyClient action.
Click to show internal directories.
Click to hide internal directories.