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

Struct StringFieldIndex

index.go:61–64  ·  view source on GitHub ↗

StringFieldIndex is used to extract a field from an object using reflection and builds an index on that field.

Source from the content-addressed store, hash-verified

59// StringFieldIndex is used to extract a field from an object
60// using reflection and builds an index on that field.
61type StringFieldIndex struct {
62 Field string
63 Lowercase bool
64}
65
66func (s *StringFieldIndex) FromObject(obj interface{}) (bool, []byte, error) {
67 v := reflect.ValueOf(obj)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected