Documentation
¶
Index ¶
- func BatchDelete(c *gin.Context, in *BatchDeleteRequest)
- func Create(c *gin.Context, in *CreateRequest)
- func Delete(c *gin.Context, in *DeleteRequest)
- func Edit(c *gin.Context, in *EditRequest)
- func Export(c *gin.Context, in *ExportRequest)
- func Import(c *gin.Context)
- func Restart(c *gin.Context, in *RestartRequest)
- func Start(c *gin.Context, in *StartRequest)
- func Status(c *gin.Context, in *StatusRequest)
- func Stop(c *gin.Context, in *StopRequest)
- type BatchDeleteRequest
- type CreateRequest
- type DeleteRequest
- type EditRequest
- type ExportRequest
- type RestartRequest
- type StartRequest
- type StatusRequest
- type StopRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BatchDeleteRequest ¶
type BatchDeleteRequest struct {
Uuid []string `json:"uuid" binding:"required"` // 代理唯一标识
}
type CreateRequest ¶
type CreateRequest struct {
Name string `json:"name" binding:"required"` // 代理名称
TagUuidList []string `json:"tag_uuid_list,omitempty"` // 标签唯一标识列表
Type string `json:"type"` // 代理类型
ListenAddress string `json:"listen_address"` // 监听地址
ListenPort string `json:"listen_port"` // 监听端口
TargetAddress string `json:"target_address"` // 目标地址
TargetPort string `json:"target_port"` // 目标端口
}
type DeleteRequest ¶
type DeleteRequest struct {
Name string `json:"name" binding:"required"` // 代理名称
}
type EditRequest ¶
type EditRequest struct {
Uuid string `json:"uuid"` // 代理唯一标识
Name string `json:"name" binding:"required"` // 代理名称
TagUuidList []string `json:"tag_uuid_list,omitempty"` // 标签唯一标识列表
Type string `json:"type"` // 代理类型
ListenAddress string `json:"listen_address"` // 监听地址
ListenPort string `json:"listen_port"` // 监听端口
TargetAddress string `json:"target_address"` // 目标地址
TargetPort string `json:"target_port"` // 目标端口
}
type ExportRequest ¶
type ExportRequest struct {
Uuid []string `json:"uuid" binding:"required"` // 代理唯一标识
}
type RestartRequest ¶
type RestartRequest struct {
Name string `json:"name" binding:"required"` // 代理名称
}
type StartRequest ¶
type StartRequest struct {
Name string `json:"name" binding:"required"` // 代理名称
}
type StatusRequest ¶
type StopRequest ¶
type StopRequest struct {
Name string `json:"name" binding:"required"` // 代理名称
}
Click to show internal directories.
Click to hide internal directories.