Documentation
¶
Index ¶
- func StripCIDs(data []byte) ([]byte, error)
- type Indexer
- func (i *Indexer) HandleCreateRecord(ctx context.Context, repo string, collection string, rkey string, ...) error
- func (i *Indexer) HandleDeleteRecord(ctx context.Context, repo string, collection string, rkey string, ...) error
- func (i *Indexer) HandleUpdateRecord(ctx context.Context, repo string, collection string, rkey string, ...) error
- func (i *Indexer) OnCommit(ctx context.Context, evt *models.Event) error
- func (i *Indexer) OnEvent(ctx context.Context, evt *models.Event) error
- func (i *Indexer) ReadCursor(ctx context.Context) error
- func (i *Indexer) Shutdown() error
- func (i *Indexer) WriteCursor(ctx context.Context) error
- type Progress
- type URI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Indexer ¶
type Indexer struct {
SocketURL string
Progress *Progress
Logger *slog.Logger
RedisClient *redis.Client
ProgressKey string
Store *store.Store
BatchInserter *store.BatchInserter
}
func NewIndexer ¶
func (*Indexer) HandleCreateRecord ¶
func (*Indexer) HandleDeleteRecord ¶
func (*Indexer) HandleUpdateRecord ¶
Click to show internal directories.
Click to hide internal directories.