Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/garethgeorge/backrest
/ Close
Method
Close
internal/api/syncapi/peerstate.go:106–106 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
104
SetPeerState(keyID string, state *PeerState)
105
OnStateChanged() eventemitter.Receiver[*PeerState]
106
Close() error
107
}
108
109
type
InMemoryPeerStateManager
struct
{
Callers
15
runCommandWithProgress
Function · 0.65
TestFirstRun
Function · 0.65
AllocOpenBindAddr
Function · 0.65
PostRequest
Function · 0.65
applySqliteMigrations
Function · 0.65
dumpOperations
Function · 0.65
Close
Method · 0.65
Query
Method · 0.65
QueryMetadata
Method · 0.65
Transform
Method · 0.65
deleteHelper
Method · 0.65
StoresForTest
Function · 0.65
Implementers
2
InMemoryPeerStateManager
internal/api/syncapi/peerstate.go
SqlitePeerStateManager
internal/api/syncapi/peerstate.go
Calls
no outgoing calls
Tested by
11
TestFirstRun
Function · 0.52
StoresForTest
Function · 0.52
TestRunCommand
Function · 0.52
PeerStateManagersForTest
Function · 0.52
newPeerUnderTest
Function · 0.52
TestReadWrite
Function · 0.52
TestHugeReadWrite
Function · 0.52
TestReadWhileWrite
Function · 0.52
TestCreateMany
Function · 0.52
TestReopenStore
Function · 0.52
TestFindLogsWithParent
Function · 0.52