Saving edges and node from CertStream traffic.

This work extracts fingerprints and domains from CertStream data
structure received through the stream. It builds nodes and edges and
saves them to the relevant files. It sends this data to Kafka but no
logic is implemented at the exit of the broker yet.
This commit is contained in:
Christopher Talib 2020-01-29 10:03:52 +01:00
parent 67aecd65c1
commit 668686fbab

View file

@ -11,12 +11,12 @@ import (
)
// BuildNode builds a node to send to MQ instance.
func BuildNode(flag string, data string) *Node {
func BuildNode(flag string, dataType string, data string) *Node {
t := time.Now()
rfc3339time := t.Format(time.RFC3339)
return &Node{
ID: flag + "--" + uuid.New().String(),
Type: flag,
Type: dataType,
Data: data,
Created: rfc3339time,
Modified: rfc3339time,