summaryrefslogtreecommitdiff
path: root/protocol/handshake.go
diff options
context:
space:
mode:
Diffstat (limited to 'protocol/handshake.go')
-rw-r--r--protocol/handshake.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/protocol/handshake.go b/protocol/handshake.go
new file mode 100644
index 0000000..02e3f0d
--- /dev/null
+++ b/protocol/handshake.go
@@ -0,0 +1,14 @@
+package protocol
+
+const (
+ TokenHeader = "X-Observatory-Token"
+ ObserverIDHeader = "X-Observatory-Observer-ID"
+)
+
+// ServerPushInfo is the first server->client packet, applying configs to observers
+type ServerPushInfo struct {
+ Version uint64 `json:"server_push_info_version"`
+ Targets []Target `json:"targets"`
+}
+
+const CurrentServerPushInfoVersion uint64 = 240308