aboutsummaryrefslogtreecommitdiff
path: root/caronte.go
blob: 934828ddc55d00e0758e2f8a3a1f2c3433f0b5be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package main

import (
	"fmt"
)

func mainn() {
	// testStorage()
	storage := NewStorage("localhost", 27017, "testing")
	err := storage.Connect(nil)
	if err != nil {
		panic(err)
	}

	importer := NewPcapImporter(&storage, "10.10.10.10")

	sessionId, err := importer.ImportPcap("capture_00459_20190627165500.pcap")
	if err != nil {
		fmt.Println(err)
	} else {
		fmt.Println(sessionId)
	}

}