Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsolePrinter ¶
type ConsolePrinter struct{}
ConsolePrinter 将*http.Request打印到控制台
func (ConsolePrinter) Handle ¶
func (cp ConsolePrinter) Handle(req *http.Request)
Handle ConsolePrinter实现的RequestHandle
type Redirector ¶
type Redirector struct { Src string // eg. test.example.com:81 Dst string // eg. https://stage.example.com:90/asdx123 }
Redirector 实现将*http.Request转发到目标服务器
func (*Redirector) Handle ¶
func (red *Redirector) Handle(req *http.Request)
Handle *Redirector实现的RequestHandle
type RequestHandle ¶
RequestHandle 声明处理*http.Request对象的方法类型
type SniffTask ¶
SniffTask 监听任务对象,包含监听、采集(处理)部分
func NewSniffTask ¶
NewSniffTask SniffTask工厂函数
func (*SniffTask) WithHandle ¶
func (st *SniffTask) WithHandle(h ...RequestHandle)
WithHandle 绑定RequestHandle,用来处理采集到*http.Request对象
Click to show internal directories.
Click to hide internal directories.