Skip to content

pkgs/store/kv

pkgs/store/kv Defines GizClaw’s general ordered key-value abstraction. Key uses string segments to express hierarchical paths, and Store provides get, set, delete, prefix list and ordered traversal capabilities.

Go API References

Core structure and implementation

SymbolFunction
Key / EntryExpress segmentation keys and read results.
StoreDefine CRUD, prefix listing and iterator contract.
OptionsConfigure store behaviors such as key separator.
Memory / NewMemoryIn-process ordered store.
Badger / NewBadgerBadger-backed persistent implementation.
PrefixedAdd a fixed key namespace to the existing Store.
ListAfterRead in pages after the specified key under prefix.

Ownership Boundary

kv Only defines the byte payload and hierarchical key semantics, and does not explain the field type of the payload. Serialization, resource validation, secondary index, and cross-record consistency are the responsibility of the domain service using it. Callers should use stable prefixes to isolate data and cannot rely on the internal key layout of other fields.