MCPcopy Create free account
hub / github.com/paypal/junodb / Exec

Method Exec

cmd/tools/cmd/cli/sscli.go:228–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226}
227
228func (c *cmdReadT) Exec() {
229 processor := newProcessor(&c.Config)
230 req := newSSRequest(proto.OpCodeRead, []byte(c.Namespace), c.key, nil, uint32(c.ttl))
231 req.SetNewRequestID()
232 req.SetShardId(c.getShardId(c.key))
233 if resp, err := processor.ProcessRequest(req); err == nil {
234 resp.PrettyPrint(os.Stdout)
235 } else {
236 }
237}
238
239func (c *cmdPrepareUpdateT) Init(name string, desc string) {
240 c.ssClientCommandWithValueT.Init(name, desc)

Callers

nothing calls this directly

Calls 7

newProcessorFunction · 0.85
newSSRequestFunction · 0.85
SetNewRequestIDMethod · 0.80
SetShardIdMethod · 0.80
getShardIdMethod · 0.80
ProcessRequestMethod · 0.80
PrettyPrintMethod · 0.65

Tested by

no test coverage detected