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