proxy

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchDelete

func BatchDelete(c *gin.Context, in *BatchDeleteRequest)

BatchDelete 批量删除

func Create

func Create(c *gin.Context, in *CreateRequest)

Create 创建代理

func Delete

func Delete(c *gin.Context, in *DeleteRequest)

Delete 删除代理

func Edit

func Edit(c *gin.Context, in *EditRequest)

Edit 编辑代理

func Export

func Export(c *gin.Context, in *ExportRequest)

Export 导出代理

func Import

func Import(c *gin.Context)

Import 导入代理

func Restart

func Restart(c *gin.Context, in *RestartRequest)

Restart 重启代理

func Start

func Start(c *gin.Context, in *StartRequest)

Start 启动代理

func Status

func Status(c *gin.Context, in *StatusRequest)

Status 获取代理状态

func Stop

func Stop(c *gin.Context, in *StopRequest)

Stop 停止代理

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"`             // 目标端口
	Socks5Username string   `json:"socks5_username"`         // SOCKS5 认证用户名
	Socks5Password string   `json:"socks5_password"`         // SOCKS5 认证密码
}

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"`             // 目标端口
	Socks5Username string   `json:"socks5_username"`         // SOCKS5 认证用户名
	Socks5Password string   `json:"socks5_password"`         // SOCKS5 认证密码
}

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 StatusRequest struct {
	Uuid        string   `json:"uuid"`                    // 代理唯一标识
	Name        string   `json:"name"`                    // 代理名称
	TagUuidList []string `json:"tag_uuid_list,omitempty"` // 标签唯一标识列表
	SortField   string   `json:"sort_field"`              // 排序字段:name, type, listen_address, listen_port, target_address, target_port
	SortOrder   string   `json:"sort_order"`              // 排序方向:ascend, descend
}

type StopRequest

type StopRequest struct {
	Name string `json:"name" binding:"required"` // 代理名称
}

Jump to

Keyboard shortcuts

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