Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ProxyModelAll or ProxyModelAuto 代理模式 ProxyModelAll = "all" ProxyModelAuto = "auto" ArgPort = "LocalPort" ArgDefaultServer = "DefaultServer" ProxyOriginTemplate = "https://%s:%d/stroxy/v1" ProxyUrlTemplate = "wss://%s:%d/stroxy/v1" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Group ¶
type Group struct { ProxyServerMap ProxyServerMap DefaultServer string LocalPort int //本地监听端口 ProxyModel string //代理模式 SkipVerify bool //跳过tls双向认证 IpDate string //ip.txt更新时间 WebsiteAddr string //官网地址 Auth string //身份信息 IgnoreAddress []string }
Group 解析和处理配置文件
var ProductConfigGroup *Group
func (*Group) GetServerConfig ¶
func (cg *Group) GetServerConfig() *ProxyServer
func (*Group) SetConfigArg ¶
type ProxyServer ¶
type ProxyServerMap ¶
type ProxyServerMap map[string]*ProxyServer
Click to show internal directories.
Click to hide internal directories.