Versions in this module Expand all Collapse all v2 v2.5.2 Apr 27, 2022 Changes in this version + type BoltDBIndexClient interface + QueryWithCursor func(_ context.Context, c *bbolt.Cursor, query index.Query, ...) error + type Config struct + CacheDir string + CacheTTL time.Duration + Limits Limits + QueryReadyNumDays int + SyncInterval time.Duration + type IndexSet interface + AwaitReady func(ctx context.Context) error + Close func() + DropAllDBs func() error + Err func() error + Init func() error + LastUsedAt func() time.Time + MultiQueries func(ctx context.Context, queries []index.Query, callback index.QueryPagesCallback) error + Sync func(ctx context.Context) (err error) + UpdateLastUsedAt func() + func NewIndexSet(tableName, userID, cacheLocation string, baseIndexSet storage.IndexSet, ...) (IndexSet, error) + type Limits interface + AllByUserID func() map[string]*validation.Limits + DefaultLimits func() *validation.Limits + type Table interface + Close func() + DropUnusedIndex func(ttl time.Duration, now time.Time) (bool, error) + EnsureQueryReadiness func(ctx context.Context, userIDs []string) error + MultiQueries func(ctx context.Context, queries []index.Query, callback index.QueryPagesCallback) error + Sync func(ctx context.Context) error + func LoadTable(name, cacheLocation string, storageClient storage.Client, ...) (Table, error) + func NewTable(name, cacheLocation string, storageClient storage.Client, ...) Table + type TableManager struct + func NewTableManager(cfg Config, boltIndexClient BoltDBIndexClient, ...) (*TableManager, error) + func (tm *TableManager) QueryPages(ctx context.Context, queries []index.Query, callback index.QueryPagesCallback) error + func (tm *TableManager) Stop()