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 data *gorm.DB 13 bf *backfill.Backfiller 14 15 backfillComplete bool 16 17 firehoseLk sync.Mutex 18 firehoseSeq string 19 reposLk sync.Mutex 20 reposSeq string 21} 22 23func NewBackend(state, data *gorm.DB) *Backend { 24 return &Backend{ 25 state: state, 26 data: data, 27 } 28}