proxy

package
v0.0.0-...-0917db3 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

Init 初始化

func ProxyHandler

func ProxyHandler(c *gin.Context)

ProxyHandler 代理处理器

func SetProxyConfig

func SetProxyConfig(open bool, port int, path string) error

SetProxyConfig 设置代理配置

Types

type ProxyConfig

type ProxyConfig struct {
	Open bool   `json:"open"`
	Port int    `json:"port"`
	Path string `json:"path,omitempty"`
	Url  string `json:"url"`
}

ProxyConfig 代理配置

func GetProxyConfig

func GetProxyConfig() ProxyConfig

GetProxyConfig 获取代理配置

Jump to

Keyboard shortcuts

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