serve

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProxy

func NewProxy()

NewProxy 初始化代理

Types

type ProxyTask

type ProxyTask struct {
	models.ProxyBasic

	TrafficIn  int64 `json:"traffic_in"`
	TrafficOut int64 `json:"traffic_out"`
	// contains filtered or unexported fields
}

func (*ProxyTask) Remove

func (task *ProxyTask) Remove()

Remove 移除任务

func (*ProxyTask) Restart

func (task *ProxyTask) Restart() error

Restart 重启任务

func (*ProxyTask) Start

func (task *ProxyTask) Start() error

Start 启动任务

func (*ProxyTask) Status

func (task *ProxyTask) Status() ([]*ProxyTask, error)

Status 获取任务状态

func (*ProxyTask) Stop

func (task *ProxyTask) Stop() error

Stop 停止代理

Jump to

Keyboard shortcuts

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