Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0xUnixIO/pulse
/ NewMemoryStore
Function
NewMemoryStore
internal/nodes/memory.go:14–18 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
12
}
13
14
func
NewMemoryStore() *MemoryStore {
15
return
&MemoryStore{
16
nodes: make(
map
[string]Node),
17
}
18
}
19
20
func
(s *MemoryStore) Upsert(node Node) (Node, error) {
21
s.mu.Lock()
Callers
15
TestE2E_UsagePushAck
Function · 0.92
TestE2E_SelfSyncOnHelloMismatch
Function · 0.92
TestE2E_MultiNode
Function · 0.92
TestSyncUsage_PushPath
Function · 0.92
TestSyncUsage_OnDemandFallback
Function · 0.92
TestSyncUsage_MixedPushAndOnDemand
Function · 0.92
TestSelfSyncHandler_HashMismatch_TriggersApply
Function · 0.92
TestResetTraffic_ResetsLimitedUser
Function · 0.92
TestSyncUsage_UpdatesBytesAndReloads
Function · 0.92
TestSyncUsage_TrafficRate_Double
Function · 0.92
TestSyncUsage_TrafficRate_Half
Function · 0.92
TestSyncUsage_TrafficRate_QuotaWithRate
Function · 0.92
Calls
no outgoing calls
Tested by
15
TestE2E_UsagePushAck
Function · 0.74
TestE2E_SelfSyncOnHelloMismatch
Function · 0.74
TestE2E_MultiNode
Function · 0.74
TestSyncUsage_PushPath
Function · 0.74
TestSyncUsage_OnDemandFallback
Function · 0.74
TestSyncUsage_MixedPushAndOnDemand
Function · 0.74
TestSelfSyncHandler_HashMismatch_TriggersApply
Function · 0.74
TestResetTraffic_ResetsLimitedUser
Function · 0.74
TestSyncUsage_UpdatesBytesAndReloads
Function · 0.74
TestSyncUsage_TrafficRate_Double
Function · 0.74
TestSyncUsage_TrafficRate_Half
Function · 0.74
TestSyncUsage_TrafficRate_QuotaWithRate
Function · 0.74