-
Notifications
You must be signed in to change notification settings - Fork 6
/
haeStubs.go
40 lines (26 loc) · 908 Bytes
/
haeStubs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//go:build !hae
// +build !hae
package zwibserve
import "github.com/gorilla/websocket"
// HAE is an interface that enables High Availability.
type peerList struct {
}
func newPeerList(_ *hub, _ DocumentDB) *peerList {
return &peerList{}
}
func (p1 *peerList) SetServerID(id string) {
}
func (pl *peerList) SetUrls(urls []string) {
}
func (pl *peerList) SetSecurityInfo(secretUser, secretPassword, jwtKey string, keyIsBase64 bool) {
}
func (pl *peerList) HandleIncomingConnection(ws *websocket.Conn, m []uint8) {
}
func (peers *peerList) NotifyClientAddRemove(docID string, clientID string, docLength uint64, added bool) {
}
func (peers *peerList) NotifyAppend(docID string, offset uint64, data []byte) {
}
func (peers *peerList) NotifyBroadcast(docID string, data []byte) {
}
func (peers *peerList) NotifyKeyUpdated(docID string, clientID string, name, value string, sessionLifetime bool) {
}