Documentation ¶
Index ¶
Constants ¶
View Source
const ( HTTPRequest = "text/http-request" HTTPResponse = "text/http-response" PlainText = "text/plain" Unknown = "unknown" )
Variables ¶
View Source
var ( HTTPRequestPattern = regexp.MustCompile("(?m)^[A-Z]+\\s\\S+\\sHTTP/\\d+(\\.\\d)*") HTTPResponsePattern = regexp.MustCompile("(?m)^HTTP/\\d+(\\.\\d)*\\s\\d+\\s[A-Z]+") PlainTextPattern = regexp.MustCompile("([[:graph:]]|[[:space:]])+") ExtractRawContentType = regexp.MustCompile("[a-zA-Z0-9_-]+/[a-zA-Z0-9_-]+") )
View Source
var (
FailedToConvertErrorToString = errors.New("failed to convert to string the error received")
)
Functions ¶
func TransformPacketToMap ¶
Types ¶
type Data ¶
func DetectChunkFormat ¶
type Engine ¶
type Engine struct { PacketFilter func(packet gopacket.Packet) (bool, error) TCPStreamFilter func(bytes Data) (bool, error) VirtualMachine *gplasma.VirtualMachine ErrorChannel chan error Packets chan gopacket.Packet TCPStreams chan Data // Interface Configuration (This will be setup from the outside) Promiscuous bool NetworkInterface string PcapFile *os.File // contains filtered or unexported fields }
func NewEngineWithInterface ¶
func (*Engine) InitScript ¶
Click to show internal directories.
Click to hide internal directories.