Documentation
¶
Index ¶
Constants ¶
View Source
const ( OP_REPLY = 1 OP_MSG = 1000 OP_UPDATE = 2001 OP_INSERT = 2002 RESERVED = 2003 OP_QUERY = 2004 OP_GET_MORE = 2005 OP_DELETE = 2006 OP_KILL_CURSORS = 2007 OP_COMMAND = 2010 OP_COMMANDREPLY = 2011 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { ClientIP string `json:"client_ip"` Collection string `json:"collection"` CommandType string `json:"command_type"` Command document `json:"command"` Database string `json:"database"` DurationMs float64 `json:"duration_ms"` Namespace string `json:"namespace"` NInserted int `json:"ninserted"` NormalizedQuery string `json:"normalized_query,omitempty"` NReturned int32 `json:"nreturned"` RequestID int32 `json:"request_id"` RequestLength int `json:"request_length"` ResponseLength int `json:"response_length"` ServerIP string `json:"server_ip"` // contains filtered or unexported fields }
func (*Event) MarshalJSON ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser implements sniffer.Consumer
func (*Parser) On ¶
func (p *Parser) On(ms sniffer.MessageStream)
type ParserFactory ¶
ParserFactory implements sniffer.ConsumerFactory TODO: this way of setting things up is kind of confusing
func (*ParserFactory) BPFFilter ¶
func (pf *ParserFactory) BPFFilter() string
func (*ParserFactory) New ¶
func (pf *ParserFactory) New(flow sniffer.IPPortTuple) sniffer.Consumer
Click to show internal directories.
Click to hide internal directories.