MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / get

Method get

internal/utils/kvstore/table.go:480–482  ·  view source on GitHub ↗
(tx *Tx[T], key string)

Source from the content-addressed store, hash-verified

478}
479
480func (this *Table[T]) get(tx *Tx[T], key string) (value T, err error) {
481 return this.getWithKeyBytes(tx, this.FullKey(key))
482}
483
484func (this *Table[T]) getWithKeyBytes(tx *Tx[T], keyBytes []byte) (value T, err error) {
485 valueBytes, closer, err := tx.batch.Get(keyBytes)

Callers 2

GetMethod · 0.95
GetMethod · 0.45

Calls 2

getWithKeyBytesMethod · 0.95
FullKeyMethod · 0.95

Tested by

no test coverage detected