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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(in *proxy.CreateRequest) error

Create 创建代理

func Delete

func Delete(in *proxy.DeleteRequest) error

Delete 删除代理

func Edit

func Edit(in *proxy.EditRequest) error

Edit 编辑代理

func GetDetailByName

func GetDetailByName(name string) (*models.ProxyBasic, error)

GetDetailByName 通过名称获取代理详情

func Restart

func Restart(in *proxy.RestartRequest) error

Restart 重启代理

func Start

func Start(in *proxy.StartRequest) error

Start 启动代理

func Status

func Status(name string) ([]*serve.ProxyTask, error)

Status 获取代理状态

func Stop

func Stop(in *proxy.StopRequest) error

Stop 停止代理

Types

type EmptyResponse

type EmptyResponse struct {
	Code int    `json:"code"` // code
	Msg  string `json:"msg"`  // 消息
}

type Response

type Response struct {
	Code int         `json:"code"` // code
	Msg  string      `json:"msg"`  // 消息
	Data *info.Reply `json:"data"` // 数据
}

type StatusResponse

type StatusResponse struct {
	Code int                `json:"code"` // code
	Msg  string             `json:"msg"`  // 消息
	Data []*serve.ProxyTask `json:"data"` // 列表数据
}

Jump to

Keyboard shortcuts

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