gui

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GUIForm = &TGUIForm{}

Functions

func Logs

func Logs(message ...string)

func LogsColor

func LogsColor(color int32, message string)

func LogsProxyTime

func LogsProxyTime(message ...string)

func LogsStaticTime

func LogsStaticTime(message ...string)

func LogsTime

func LogsTime(message ...string)

Types

type ProxyInterceptPanel

type ProxyInterceptPanel struct {
	TPanel      *lcl.TPanel
	State       int32            //当前状态
	UrlAddrEdit *lcl.TEdit       //拦截地址
	StateLabel  *lcl.TStaticText //拦截状态
	StateOkBtn  *lcl.TButton     //拦截状态确认按钮

	ProxyInterceptRequestPanel  *ProxyInterceptRequestPanel  //代理拦截请求Panel
	ProxyInterceptResponsePanel *ProxyInterceptResponsePanel //代理拦截响应Panel
	ProxyInterceptSettingPanel  *ProxyInterceptSettingPanel  //代理拦截配置Panel
	InterceptQueue              *common.Queue                //拦截队列
	InterceptQueueProxyDetail   *entity.ProxyDetail          //当前拦截队列处理的代理
	IsUseInterceptQueue         bool                         //是否正在使用拦截队列
	// contains filtered or unexported fields
}

代理拦截Panel

type ProxyInterceptRequestBodyPanel

type ProxyInterceptRequestBodyPanel struct {
	TPanel               *lcl.TPanel
	RawPanel             *lcl.TPanel
	RawMemo              *lcl.TMemo
	FormDataGridPanel    *lcl.TPanel
	FormDataGrid         *lcl.TStringGrid
	FormDataGridOpenFile *lcl.TOpenDialog
	FormDataGridList     []*entity.FormDataGridList
	FormDataGridRowCount int32
}

代理拦截请求Body Panel

func (*ProxyInterceptRequestBodyPanel) ClearFormDataGrid

func (m *ProxyInterceptRequestBodyPanel) ClearFormDataGrid()

清空Body表格

func (*ProxyInterceptRequestBodyPanel) FormDataGridAdd

func (m *ProxyInterceptRequestBodyPanel) FormDataGridAdd(t, key, value string)

请求Body表格添加

func (*ProxyInterceptRequestBodyPanel) FormDataGridHead

func (m *ProxyInterceptRequestBodyPanel) FormDataGridHead()

请求Body表格头

type ProxyInterceptRequestPanel

type ProxyInterceptRequestPanel struct {
	TPanel              *lcl.TPanel
	ParamsGrid          *lcl.TStringGrid
	ParamsGridRowCount  int32
	HeadersGrid         *lcl.TStringGrid
	HeadersGridRowCount int32
	TBodyPanel          *ProxyInterceptRequestBodyPanel
}

代理拦截请求Panel

func (*ProxyInterceptRequestPanel) ClearHeaderGrid

func (m *ProxyInterceptRequestPanel) ClearHeaderGrid()

清空头列表

func (*ProxyInterceptRequestPanel) ClearQueryParamsGrid

func (m *ProxyInterceptRequestPanel) ClearQueryParamsGrid()

清空参数表格

func (*ProxyInterceptRequestPanel) HeaderGridAdd

func (m *ProxyInterceptRequestPanel) HeaderGridAdd(key, value string)

请求拦截头添加

func (*ProxyInterceptRequestPanel) HeaderGridHead

func (m *ProxyInterceptRequestPanel) HeaderGridHead()

请求拦截参数表格头

func (*ProxyInterceptRequestPanel) QueryParamsGridAdd

func (m *ProxyInterceptRequestPanel) QueryParamsGridAdd(key, value string)

请求拦截参数列表添加

func (*ProxyInterceptRequestPanel) RequestQueryParamsGridHead

func (m *ProxyInterceptRequestPanel) RequestQueryParamsGridHead()

请求拦截参数表格头

type ProxyInterceptResponsePanel

type ProxyInterceptResponsePanel struct {
	TPanel *lcl.TPanel
}

代理拦截响应Panel

type ProxyInterceptSettingPanel

type ProxyInterceptSettingPanel struct {
	TPanel        *lcl.TPanel
	OnOffBtn      *lcl.TImageButton
	InterceptGrid *lcl.TStringGrid
	//InterceptGridRowCount   int32
	InterceptGridConfigData *[]*entity.ProxyInterceptConfig
}

代理拦截配置Panel

func (*ProxyInterceptSettingPanel) InterceptGridAdd

func (m *ProxyInterceptSettingPanel) InterceptGridAdd(URL string)

请求拦截参数列表添加

func (*ProxyInterceptSettingPanel) InterceptGridConfigDataAdd

func (m *ProxyInterceptSettingPanel) InterceptGridConfigDataAdd(URL string)

拦截配置列表添加配置数据

func (*ProxyInterceptSettingPanel) InterceptGridHead

func (m *ProxyInterceptSettingPanel) InterceptGridHead()

请求拦截参数表格头

type RequestDetailViewPanel

type RequestDetailViewPanel struct {
	TPanel                 *lcl.TPanel
	IdEdit                 *lcl.TLabeledEdit
	MethodComboBox         *lcl.TComboBox
	HostEdit               *lcl.TLabeledEdit
	SourceEdit             *lcl.TLabeledEdit
	TargetEdit             *lcl.TLabeledEdit
	RequestDetailViewMemo  *lcl.TMemo
	ResponseDetailViewMemo *lcl.TMemo
}

代理详情查看Panel

type RightPanelUI

type RightPanelUI struct {
	TPanel                    *lcl.TPanel
	RequestDetailViewPanel    *RequestDetailViewPanel //代理详情查看 Sheet Panel
	ProxyInterceptConfigPanel *ProxyInterceptPanel    //代理拦截配置 Sheet Panel
}

代理Panel

type TGUIForm

type TGUIForm struct {
	*lcl.TForm

	ProxyLogsGridRowStyle map[int32]*entity.ProxyLogsGridRowStyle //每行的样式

	ProxyDetails map[int32]*entity.ProxyDetail //代理详情数据集合
	// contains filtered or unexported fields
}

func (*TGUIForm) OnFormCreate

func (m *TGUIForm) OnFormCreate(sender lcl.IObject)

Jump to

Keyboard shortcuts

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