Versions in this module Expand all Collapse all v0 v0.0.0 Oct 19, 2024 Changes in this version + func CreateFieldFilter(fieldName string, expectedValue interface{}) func(interface{}) bool + type Index struct + Data map[interface{}][]string + FieldName string + type PrevalenceLayer struct + func NewPrevalenceLayer(filename string) (*PrevalenceLayer, error) + func (pl *PrevalenceLayer) BeginTransaction() *Transaction + func (pl *PrevalenceLayer) Commit(tx *Transaction) error + func (pl *PrevalenceLayer) CreateIndex(structType reflect.Type, field string) + func (pl *PrevalenceLayer) Delete(key string) error + func (pl *PrevalenceLayer) Get(key string) (interface{}, bool) + func (pl *PrevalenceLayer) Query(filter func(interface{}) bool) []interface{} + func (pl *PrevalenceLayer) QueryByIndex(structType reflect.Type, field string, value interface{}) []interface{} + func (pl *PrevalenceLayer) Set(key string, value interface{}) error + type Transaction struct + func (tx *Transaction) Delete(pl *PrevalenceLayer, key string) *Transaction + func (tx *Transaction) Set(pl *PrevalenceLayer, key string, value interface{}) *Transaction + type TypeInfo struct + Name string + PkgPath string