an app.bsky.* indexer
1package main
2
3import (
4 "sync"
5
6 "github.com/bluesky-social/indigo/backfill"
7 "gorm.io/gorm"
8)
9
10type Backend struct {
11 state *gorm.DB
12 bf *backfill.Backfiller
13
14 firehoseLk sync.Mutex
15 firehoseSeq string
16 reposLk sync.Mutex
17 reposSeq string
18}
19
20func NewBackend(state *gorm.DB, bf *backfill.Backfiller) *Backend {
21 return &Backend{
22 state: state,
23 bf: bf,
24 }
25}