Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpMonitor ¶
type HttpMonitor struct { Device string Requests chan HttpRequest TimeStamp time.Time Timeout time.Duration SnapshotLength int32 Promiscous bool }
The concrete http-monitor type
func (*HttpMonitor) Receive ¶
func (monitor *HttpMonitor) Receive() chan HttpRequest
Start receiving http requests on an output channel
type HttpRequest ¶
type HttpRequest struct { Url string Host string DstPort int SrcPort int DstIP string SrcIP string TimeStamp time.Time }
An instance of a HTTP request
type HttpRequests ¶
type HttpRequests []HttpRequest
type Monitor ¶
type Monitor interface { Start() HttpMonitor Receive() chan HttpRequest }
type Parser ¶
type Parser struct{}
Public interface of our net/http parser
func CreateParser ¶
func CreateParser() Parser
func (*Parser) GetSrcDstIPs ¶
returns (srcIP, dstIP)
Click to show internal directories.
Click to hide internal directories.