proxy

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: MIT Imports: 10 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"` // 代理名称
	Type          string `json:"type"`                    // 代理类型
	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"` // 代理名称
	Type          string `json:"type"`                    // 代理类型
	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 StatusRequest struct {
	Name string `json:"name"` // 代理名称
}

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