adding comments to structures and saving data on second filter as well

This commit is contained in:
christalib 2020-01-12 18:15:19 +01:00
parent 57f95f9ee5
commit 3bc025db78

View file

@ -31,6 +31,7 @@ func ReadFromStream(inputChan chan utils.InputEvent) {
}
if findLove(b.String()) {
utils.ClippySays("I love you too...")
saveData(b.String(), input)
b.Reset()
}
default:
@ -40,11 +41,13 @@ func ReadFromStream(inputChan chan utils.InputEvent) {
}
}
// Node is the word that has been captured.
type Node struct {
ID uuid.UUID
Word string `json:"word"`
}
// Edge is the collection of keystrokes captured on filtered word.
type Edge struct {
ID uuid.UUID
NodeID uuid.UUID `json:"NodeID"`