summaryrefslogtreecommitdiff
path: root/protocol/handshake.go
blob: 02e3f0dcec220343e548ce6a1a5d6aa3a4a122b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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