mirror of
https://github.com/maride/pancap.git
synced 2026-04-24 06:35:46 +00:00
Reformat code
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
package http
|
||||
|
||||
import (
|
||||
"github.com/maride/pancap/common"
|
||||
"github.com/maride/pancap/output"
|
||||
"github.com/google/gopacket"
|
||||
"github.com/google/gopacket/layers"
|
||||
"github.com/google/gopacket/tcpassembly"
|
||||
"github.com/maride/pancap/common"
|
||||
"github.com/maride/pancap/output"
|
||||
)
|
||||
|
||||
type Protocol struct {
|
||||
initialized bool
|
||||
requestFactory *httpRequestFactory
|
||||
responseFactory *httpResponseFactory
|
||||
requestPool *tcpassembly.StreamPool
|
||||
responsePool *tcpassembly.StreamPool
|
||||
requestAssembler *tcpassembly.Assembler
|
||||
initialized bool
|
||||
requestFactory *httpRequestFactory
|
||||
responseFactory *httpResponseFactory
|
||||
requestPool *tcpassembly.StreamPool
|
||||
responsePool *tcpassembly.StreamPool
|
||||
requestAssembler *tcpassembly.Assembler
|
||||
responseAssembler *tcpassembly.Assembler
|
||||
}
|
||||
|
||||
|
||||
@@ -3,17 +3,17 @@ package http
|
||||
import (
|
||||
"bufio"
|
||||
"fmt"
|
||||
"github.com/maride/pancap/output"
|
||||
"github.com/google/gopacket"
|
||||
"github.com/google/gopacket/tcpassembly"
|
||||
"github.com/google/gopacket/tcpassembly/tcpreader"
|
||||
"github.com/maride/pancap/output"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
var (
|
||||
responseSummaryLines []string
|
||||
responseSummaryLines []string
|
||||
)
|
||||
|
||||
type httpResponseFactory struct{}
|
||||
|
||||
Reference in New Issue
Block a user