model

package
v0.0.0-...-8f4603f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Mapping = `` /* 365-byte string literal not displayed */

TODO Mapping subject to Change

Variables

This section is empty.

Functions

func Connect

func Connect() (*elastic.Client, error)

establishes connection to ElasticSearch

func Index

func Index(ds *DeserializedPacket) error

Index Function indexes the deserialized packet into packet index

Types

type DeserializedPacket

type DeserializedPacket struct {
	FlowHash       string
	TCPContentType string
	NetFlow        string
	Payload        string
	IPv4Length     uint16
	SrcPort        uint32
	DstPort        uint32
	DstMAC         string
	SrcMAC         string
	TTL            uint8
	SrcIP          string
	DstIP          string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL