Documentation
¶
Index ¶
- Constants
- func APIRoute(router *gin.RouterGroup, eventChan chan *EventObj)
- func AddProxy(ctx *gin.Context)
- func AddProxyGroup(ctx *gin.Context)
- func AppendMitMRules(ctx *gin.Context)
- func DelMitMRules(ctx *gin.Context)
- func EditProxy(ctx *gin.Context)
- func EditProxyGroup(ctx *gin.Context)
- func GetDNSConfig(ctx *gin.Context)
- func GetGeneralConfig(ctx *gin.Context)
- func GetHttpMap(ctx *gin.Context)
- func GetMitMRules(ctx *gin.Context)
- func GetProxies(ctx *gin.Context)
- func GetProxy(ctx *gin.Context)
- func GetProxyGroup(ctx *gin.Context)
- func GetProxyGroups(ctx *gin.Context)
- func GetRule(ctx *gin.Context)
- func Policies(ctx *gin.Context)
- func RemoveProxy(ctx *gin.Context)
- func RemoveProxyGroup(ctx *gin.Context)
- func SetDNSConfig(ctx *gin.Context)
- func SetGeneralConfig(eventChan chan *EventObj) func(*gin.Context)
- func SetHttpMap(ctx *gin.Context)
- func SetProxies(ctx *gin.Context)
- func SetProxyGroups(ctx *gin.Context)
- func SetRule(ctx *gin.Context)
- type DNSConfig
- type GeneralConfig
- type ProxyRequest
- type Response
- type RuleOp
Constants ¶
View Source
const ( RuleOpAdd = "add" RuleOpRemove = "remove" RuleOpUpdate = "update" )
Variables ¶
This section is empty.
Functions ¶
func APIRoute ¶
func APIRoute(router *gin.RouterGroup, eventChan chan *EventObj)
func AddProxyGroup ¶
func AppendMitMRules ¶
func DelMitMRules ¶
func EditProxyGroup ¶
func GetDNSConfig ¶
func GetGeneralConfig ¶
func GetHttpMap ¶
func GetMitMRules ¶
func GetProxies ¶
func GetProxyGroup ¶
func GetProxyGroups ¶
func RemoveProxy ¶
func RemoveProxyGroup ¶
func SetDNSConfig ¶
func SetGeneralConfig ¶
func SetHttpMap ¶
func SetProxies ¶
func SetProxyGroups ¶
Types ¶
type GeneralConfig ¶
type GeneralConfig struct { LogLevel string `json:"log_level"` HttpPort string `json:"http_port"` HttpInterface string `json:"http_interface"` SocksPort string `json:"socks_port"` SocksInterface string `json:"socks_interface"` ControllerPort string `json:"controller_port"` ControllerInterface string `json:"controller_interface"` }
type ProxyRequest ¶
Click to show internal directories.
Click to hide internal directories.