MCPcopy Index your code
hub / github.com/google/seesaw / newSyncServer

Function newSyncServer

engine/sync.go:237–243  ·  view source on GitHub ↗

newSyncServer returns an initalised synchronisation server.

(e *Engine)

Source from the content-addressed store, hash-verified

235
236// newSyncServer returns an initalised synchronisation server.
237func newSyncServer(e *Engine) *syncServer {
238 return &syncServer{
239 engine: e,
240 heartbeatInterval: syncHeartbeatInterval,
241 sessions: make(map[SyncSessionID]*syncSession),
242 }
243}
244
245// newSession allocates a new session ID and starts managing the session with
246// the provided node.

Callers 2

newEngineWithNCCFunction · 0.85
newSyncTestFunction · 0.85

Calls

no outgoing calls

Tested by 1

newSyncTestFunction · 0.68