Documentation ¶
Index ¶
- Variables
- func PutColorMessage(color int32, message ...string)
- func PutLogsProxyTime(message ...string)
- func PutLogsStaticTime(message ...string)
- func PutMessage(message ...string)
- func PutTimeMessage(message ...string)
- type FormDataGridList
- type LogMessage
- type ProxyDetail
- type ProxyInterceptConfig
- type ProxyLogsGridColStyle
- func (m *ProxyLogsGridColStyle) FontStyle() types.TFontStyle
- func (m *ProxyLogsGridColStyle) IsColor() bool
- func (m *ProxyLogsGridColStyle) IsFontStyle() bool
- func (m *ProxyLogsGridColStyle) SetFontStyle(fontStyle types.TFontStyle) *ProxyLogsGridColStyle
- func (m *ProxyLogsGridColStyle) SetTColor(color types.TColor) *ProxyLogsGridColStyle
- func (m *ProxyLogsGridColStyle) SetText(text string) *ProxyLogsGridColStyle
- func (m *ProxyLogsGridColStyle) TColor() types.TColor
- func (m *ProxyLogsGridColStyle) Text() string
- type ProxyLogsGridRowStyle
- type ProxyRequestDetail
- type ProxyResponseDetail
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AppInitSuccess = true //app初始化成功结果 ShowProxyLog bool //显示代理日志开关 ShowStaticLog bool //显示普通日志开关 EnableProxyDetail bool //启用代理详情开关 checkbox GlobalLogMessageChan = make(chan *LogMessage) //http-server for select: 全局日志输出通道 ProxyDetailGridChan = make(chan *ProxyDetail) //gui 组件 for select: 代理列表和详情数据传输通道 ProxyFlowInterceptChan = make(chan *ProxyDetail) //gui 组件 for select: 代理拦截流程数据传输通道 proxy-server > gui,请求同步到UI ProxyInterceptConfigChan = make(chan *[]*ProxyInterceptConfig) //proxy server for select: 代理拦截配置数据传输通道 gui > proxy-server,拦截规则同步给proxy server处理 ProxyInterceptConfigEnable = true //代理拦截启用开关 button ID = &id{} )
Functions ¶
Types ¶
type FormDataGridList ¶
type ProxyDetail ¶
type ProxyDetail struct { Error error `json:"-"` State consts.ProxyFlow `json:"-"` ID int32 `json:"-"` ProxyInterceptSignal chan int32 `json:"-"` //代理拦截产生的信号,数字标记状态 10:开始请求拦截 11:结束请求拦截, 20:开始响应拦截 21:结束响应拦截 IsAddTaskQueue bool `json:"-"` //是否添加到任务队列 ,只有在初始请求时第一次添加 true 添加 StateCode int `json:"state_code"` Method string `json:"method"` SourceUrl string `json:"source_url"` TargetUrl string `json:"target_url"` Host string `json:"host"` Request ProxyRequestDetail `json:"request"` Response ProxyResponseDetail `json:"response"` }
代理请求详情
type ProxyInterceptConfig ¶
type ProxyInterceptConfig struct { Index int32 Option consts.PIOption // contains filtered or unexported fields }
代理拦截配置
func (*ProxyInterceptConfig) Enable ¶
func (m *ProxyInterceptConfig) Enable() bool
func (*ProxyInterceptConfig) InterceptUrl ¶
func (m *ProxyInterceptConfig) InterceptUrl() string
func (*ProxyInterceptConfig) SetEnable ¶
func (m *ProxyInterceptConfig) SetEnable(enable bool)
func (*ProxyInterceptConfig) SetInterceptUrl ¶
func (m *ProxyInterceptConfig) SetInterceptUrl(interceptUrl string)
type ProxyLogsGridColStyle ¶
type ProxyLogsGridColStyle struct {
// contains filtered or unexported fields
}
func NewColStyle ¶
func NewColStyle(tColor types.TColor, font types.TFontStyle) *ProxyLogsGridColStyle
func (*ProxyLogsGridColStyle) FontStyle ¶
func (m *ProxyLogsGridColStyle) FontStyle() types.TFontStyle
func (*ProxyLogsGridColStyle) IsColor ¶
func (m *ProxyLogsGridColStyle) IsColor() bool
func (*ProxyLogsGridColStyle) IsFontStyle ¶
func (m *ProxyLogsGridColStyle) IsFontStyle() bool
func (*ProxyLogsGridColStyle) SetFontStyle ¶
func (m *ProxyLogsGridColStyle) SetFontStyle(fontStyle types.TFontStyle) *ProxyLogsGridColStyle
func (*ProxyLogsGridColStyle) SetTColor ¶
func (m *ProxyLogsGridColStyle) SetTColor(color types.TColor) *ProxyLogsGridColStyle
func (*ProxyLogsGridColStyle) SetText ¶
func (m *ProxyLogsGridColStyle) SetText(text string) *ProxyLogsGridColStyle
func (*ProxyLogsGridColStyle) TColor ¶
func (m *ProxyLogsGridColStyle) TColor() types.TColor
func (*ProxyLogsGridColStyle) Text ¶
func (m *ProxyLogsGridColStyle) Text() string
type ProxyLogsGridRowStyle ¶
type ProxyLogsGridRowStyle struct {
// contains filtered or unexported fields
}
func NewRowStyle ¶
func NewRowStyle() *ProxyLogsGridRowStyle
func (*ProxyLogsGridRowStyle) GetColStyle ¶
func (m *ProxyLogsGridRowStyle) GetColStyle(col int32) *ProxyLogsGridColStyle
func (*ProxyLogsGridRowStyle) GetCols ¶
func (m *ProxyLogsGridRowStyle) GetCols() map[int32]*ProxyLogsGridColStyle
func (*ProxyLogsGridRowStyle) SetColStyle ¶
func (m *ProxyLogsGridRowStyle) SetColStyle(col int32, style *ProxyLogsGridColStyle)
type ProxyRequestDetail ¶
Click to show internal directories.
Click to hide internal directories.