MCPcopy Create free account
hub / github.com/distributedio/titan / debugObject

Function debugObject

command/server.go:221–228  ·  view source on GitHub ↗
(ctx *Context, txn *db.Transaction)

Source from the content-addressed store, hash-verified

219 }
220}
221func debugObject(ctx *Context, txn *db.Transaction) (OnCommit, error) {
222 key := []byte(ctx.Args[1])
223 obj, err := txn.Object(key)
224 if err != nil {
225 return nil, errors.New("ERR " + err.Error())
226 }
227 return SimpleString(ctx.Out, obj.String()), nil
228}
229
230// RedisCommand returns Array reply of details about all Redis commands
231func RedisCommand(ctx *Context) {

Callers 1

DebugFunction · 0.85

Calls 4

SimpleStringFunction · 0.85
ObjectMethod · 0.80
ErrorMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected