MCPcopy
hub / github.com/hashicorp/go-memdb / CustomIndex

Struct CustomIndex

txn_test.go:1166–1166  ·  view source on GitHub ↗

CustomIndex is a simple custom indexer that doesn't add any suffixes to its object keys; this is compatible with the LongestPrefixMatch algorithm.

Source from the content-addressed store, hash-verified

1164// CustomIndex is a simple custom indexer that doesn't add any suffixes to its
1165// object keys; this is compatible with the LongestPrefixMatch algorithm.
1166type CustomIndex struct{}
1167
1168// FromObject takes the Foo field of a TestObject and prepends a null.
1169func (*CustomIndex) FromObject(obj interface{}) (bool, []byte, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected