aboutsummaryrefslogtreecommitdiff
path: root/pkg/monitor/messages.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/monitor/messages.go')
-rw-r--r--pkg/monitor/messages.go40
1 files changed, 0 insertions, 40 deletions
diff --git a/pkg/monitor/messages.go b/pkg/monitor/messages.go
deleted file mode 100644
index 717aae6..0000000
--- a/pkg/monitor/messages.go
+++ /dev/null
@@ -1,40 +0,0 @@
-package monitor
-
-import (
- ct "github.com/google/certificate-transparency-go"
- "gitlab.torproject.org/rgdd/ct/pkg/metadata"
-)
-
-// MessageLogConfig provides information about a log the monitor is downloading
-type MessageLogConfig struct {
- Metadata metadata.Log
- State MonitorState
-}
-
-// MessageLogProgress is the next log state and any encountered leaves that were
-// considered matching since the previous log state. Parse errors are included.
-type MessageLogProgress struct {
- State MonitorState
- Matches []LogEntry
- Errors []error
-}
-
-// MonitorState describes the monitor's state for a particular log. The signed tree
-// head is the latest verified append-only state that was observed. The index
-// is the next leaf which will be downloaded and processed by the monitor.
-type MonitorState struct {
- LogState
- NextIndex uint64
-}
-
-// LogState describes the state of a log
-type LogState struct {
- ct.SignedTreeHead
-}
-
-// LogEntry is a leaf in a log's Merkle tree
-type LogEntry struct {
- LeafIndex uint64
- LeafData []byte
- ExtraData []byte
-}