diff options
Diffstat (limited to 'connection_streams.go')
-rw-r--r-- | connection_streams.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/connection_streams.go b/connection_streams.go new file mode 100644 index 0000000..bede526 --- /dev/null +++ b/connection_streams.go @@ -0,0 +1,16 @@ +package main + +import "time" + +type ConnectionStream struct { + ID RowID `json:"id" bson:"_id"` + ConnectionID RowID `json:"connection_id" bson:"connection_id"` + DocumentIndex int `json:"document_index" bson:"document_index"` + Payload []byte `json:"payload" bson:"payload"` + BlocksIndexes []int `json:"blocks_indexes" bson:"blocks_indexes"` + BlocksTimestamps []time.Time `json:"blocks_timestamps" bson:"blocks_timestamps"` + BlocksLoss []bool `json:"blocks_loss" bson:"blocks_loss"` + PatternMatches map[uint][]PatternSlice `json:"pattern_matches" bson:"pattern_matches"` +} + +type PatternSlice [2]uint64 |