Versions in this module Expand all Collapse all v1 v1.0.0 Jul 10, 2025 Changes in this version + var ErrDocumentDeleted = errors.New("document has been deleted") + var ErrDocumentNotFound = errors.New("document not found") + var ErrEmptyIndex = errors.New("cannot create empty index") + var ErrIndexExists = errors.New("index already exists") + var ErrIndexNotFound = errors.New("index does not exist") + var ErrInvalidDocument = errors.New("invalid document") + var ErrStoreClosed = errors.New("store closed") + var ErrStreamClosed = errors.New("stream closed") + type Document map[string]any + type DocumentHandle struct + type DocumentResult struct + Data Document + ID string + Version uint64 + type DocumentSnapshot struct + type DocumentStream struct + func NewDocumentStream(bufferSize int) *DocumentStream + func (ds *DocumentStream) Close() + func (ds *DocumentStream) Next() (DocumentResult, error) + type Store struct + func NewStore() *Store + func (s *Store) Close() + func (s *Store) CreateIndex(indexName string, fields []string) error + func (s *Store) Delete(docID string) error + func (s *Store) DropIndex(indexName string) error + func (s *Store) Get(docID string) (*DocumentResult, error) + func (s *Store) Insert(doc Document) (string, error) + func (s *Store) Lookup(indexName string, values []any) ([]*DocumentResult, error) + func (s *Store) LookupRange(indexName string, minValues, maxValues []any) ([]*DocumentResult, error) + func (s *Store) Stream(bufferSize int) *DocumentStream + func (s *Store) Update(docID string, doc Document) error Other modules containing this package github.com/asaidimu/go-store/v2 github.com/asaidimu/go-store/v3