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

Struct KVServer

cmd/cqld/adapter.go:113–121  ·  view source on GitHub ↗

KVServer holds LocalStorage instance and implements consistent persistence interface.

Source from the content-addressed store, hash-verified

111
112// KVServer holds LocalStorage instance and implements consistent persistence interface.
113type KVServer struct {
114 current proto.NodeID
115 peers *proto.Peers
116 storage *LocalStorage
117 ctx context.Context
118 cancelCtx context.CancelFunc
119 timeout time.Duration
120 wg sync.WaitGroup
121}
122
123// NewKVServer returns the kv server instance.
124func NewKVServer(currentNode proto.NodeID, peers *proto.Peers, storage *LocalStorage, timeout time.Duration) (s *KVServer) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected