MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / Persistence

Interface Persistence

consistent/persistence.go:26–32  ·  view source on GitHub ↗

Persistence is the interface for consistent persistence.

Source from the content-addressed store, hash-verified

24
25// Persistence is the interface for consistent persistence.
26type Persistence interface {
27 Init(storePath string, initNode []proto.Node) (err error)
28 SetNode(node *proto.Node) (err error)
29 DelNode(nodeID proto.NodeID) (err error)
30 Reset() error
31 GetAllNodeInfo() (nodes []proto.Node, err error)
32}
33
34// KMSStorage implements Persistence.
35type KMSStorage struct{}

Callers 16

NewChainWithContextFunction · 0.65
InitConsistentFunction · 0.65
startDBMSFunction · 0.65
addMethod · 0.65
InitMethod · 0.65
SetNodeExMethod · 0.65
RemoveMethod · 0.65
mainCycleMethod · 0.65
TestMetaStateFunction · 0.65
initNodeFunction · 0.65
SetMethod · 0.65
initNodeChainBusServiceFunction · 0.65

Implementers 2

KMSStorageconsistent/persistence.go
KVServercmd/cqld/adapter.go

Calls

no outgoing calls

Tested by

no test coverage detected