this repo has no description

initial commit

+2588
+37
.gitignore
··· 1 + # macOS 2 + .DS_Store 3 + 4 + # Editors/IDE 5 + .vscode/ 6 + .idea/ 7 + *.swp 8 + *.swo 9 + 10 + # Environment / secrets 11 + .env 12 + .env.* 13 + !.env.example 14 + 15 + # Logs / runtime files 16 + *.log 17 + *.pid 18 + 19 + # Build artifacts 20 + /bin/ 21 + /build/ 22 + /dist/ 23 + *.test 24 + *.out 25 + coverage.out 26 + *.prof 27 + *.pprof 28 + 29 + # Local databases / caches 30 + *.sqlite 31 + *.sqlite3 32 + *.db 33 + tmp/ 34 + .cache/ 35 + 36 + # Docker local overrides 37 + docker-compose.override.yml
+13
Dockerfile
··· 1 + FROM golang:1.22 AS builder 2 + WORKDIR /src 3 + 4 + COPY . . 5 + RUN go mod tidy 6 + RUN CGO_ENABLED=0 GOOS=linux go build -o /out/effem-appview ./cmd/effem-appview 7 + 8 + FROM gcr.io/distroless/base-debian12 9 + WORKDIR /app 10 + COPY --from=builder /out/effem-appview /app/effem-appview 11 + 12 + EXPOSE 8080 13 + ENTRYPOINT ["/app/effem-appview"]
+42
README.md
··· 1 + # Effem AppView 2 + 3 + Custom AT Protocol AppView backend for Effem. 4 + This directory is intended to be maintained as its own standalone git repository (`effem-appview`). 5 + 6 + ## Scope Implemented 7 + 8 + - Section 3: Custom Lexicon Definitions 9 + - Section 4: Go AppView Implementation 10 + 11 + ## Project Layout 12 + 13 + - `cmd/effem-appview/`: CLI entrypoint 14 + - `appview/`: server, firehose, handlers, indexer, Podcast Index client, DB models 15 + - `lexicons/xyz/effem/feed/`: feed lexicons (`defs`, `subscription`, `comment`, `recommendation`, `list`, `bookmark`) 16 + - `lexicons/xyz/effem/actor/`: actor lexicons (`profile`) 17 + 18 + ## Run Locally 19 + 20 + ```bash 21 + go mod tidy 22 + go run ./cmd/effem-appview --bind :8080 23 + ``` 24 + 25 + Required env vars for Podcast Index proxy endpoints: 26 + 27 + - `EFFEM_PI_KEY` 28 + - `EFFEM_PI_SECRET` 29 + 30 + Optional env vars: 31 + 32 + - `EFFEM_BIND` (default `:8080`) 33 + - `EFFEM_DATABASE_URL` (default local postgres DSN) 34 + - `EFFEM_RELAY_HOST` (default `wss://bsky.network`) 35 + - `EFFEM_PLC_HOST` (default `https://plc.directory`) 36 + - `EFFEM_FIREHOSE_PARALLELISM` (default `5`) 37 + 38 + ## Docker 39 + 40 + ```bash 41 + docker compose up --build 42 + ```
+29
appview/config.go
··· 1 + package appview 2 + 3 + import "fmt" 4 + 5 + type Config struct { 6 + Bind string 7 + DatabaseURL string 8 + RelayHost string 9 + PLCHost string 10 + PIKey string 11 + PISecret string 12 + FirehoseParallel int 13 + } 14 + 15 + func (c Config) Validate() error { 16 + if c.Bind == "" { 17 + return fmt.Errorf("bind must not be empty") 18 + } 19 + if c.DatabaseURL == "" { 20 + return fmt.Errorf("database URL must not be empty") 21 + } 22 + if c.RelayHost == "" { 23 + return fmt.Errorf("relay host must not be empty") 24 + } 25 + if c.FirehoseParallel <= 0 { 26 + return fmt.Errorf("firehose parallelism must be positive") 27 + } 28 + return nil 29 + }
+15
appview/database/migrations.go
··· 1 + package database 2 + 3 + import "gorm.io/gorm" 4 + 5 + func RunMigrations(db *gorm.DB) error { 6 + return db.AutoMigrate( 7 + &FirehoseCursor{}, 8 + &Subscription{}, 9 + &Comment{}, 10 + &Recommendation{}, 11 + &PodcastList{}, 12 + &Bookmark{}, 13 + &Profile{}, 14 + ) 15 + }
+87
appview/database/models.go
··· 1 + package database 2 + 3 + import "time" 4 + 5 + const DefaultCursorName = "main" 6 + 7 + type FirehoseCursor struct { 8 + Name string `gorm:"primaryKey;size:64"` 9 + Seq int64 `gorm:"not null"` 10 + UpdatedAt time.Time `gorm:"autoUpdateTime"` 11 + } 12 + 13 + type Subscription struct { 14 + ID uint `gorm:"primaryKey"` 15 + DID string `gorm:"size:255;not null;index:idx_subscriptions_did_rkey,unique"` 16 + Rkey string `gorm:"size:512;not null;index:idx_subscriptions_did_rkey,unique"` 17 + FeedID int `gorm:"not null;index"` 18 + FeedURL string `gorm:"size:2048"` 19 + PodcastGuid string `gorm:"size:512"` 20 + CreatedAt string `gorm:"size:64;not null"` 21 + IndexedAt time.Time `gorm:"autoCreateTime"` 22 + } 23 + 24 + type Comment struct { 25 + ID uint `gorm:"primaryKey"` 26 + DID string `gorm:"size:255;not null;index:idx_comments_did_rkey,unique"` 27 + Rkey string `gorm:"size:512;not null;index:idx_comments_did_rkey,unique"` 28 + ATURI string `gorm:"size:1024;index;not null"` 29 + FeedID int `gorm:"not null;index:idx_comments_episode"` 30 + EpisodeID int `gorm:"not null;index:idx_comments_episode"` 31 + EpisodeGuid string `gorm:"size:512"` 32 + PodcastGuid string `gorm:"size:512"` 33 + Text string `gorm:"type:text;not null"` 34 + TimestampS *int `gorm:"index"` 35 + RootURI string `gorm:"size:1024;index"` 36 + RootCID string `gorm:"size:255"` 37 + ParentURI string `gorm:"size:1024;index"` 38 + ParentCID string `gorm:"size:255"` 39 + CreatedAt string `gorm:"size:64;not null"` 40 + IndexedAt time.Time `gorm:"autoCreateTime"` 41 + } 42 + 43 + type Recommendation struct { 44 + ID uint `gorm:"primaryKey"` 45 + DID string `gorm:"size:255;not null;index:idx_recommendations_did_rkey,unique"` 46 + Rkey string `gorm:"size:512;not null;index:idx_recommendations_did_rkey,unique"` 47 + FeedID int `gorm:"not null;index:idx_recommendations_episode"` 48 + EpisodeID int `gorm:"not null;index:idx_recommendations_episode"` 49 + EpisodeGuid string `gorm:"size:512"` 50 + PodcastGuid string `gorm:"size:512"` 51 + Text string `gorm:"type:text"` 52 + CreatedAt string `gorm:"size:64;not null"` 53 + IndexedAt time.Time `gorm:"autoCreateTime"` 54 + } 55 + 56 + type PodcastList struct { 57 + ID uint `gorm:"primaryKey"` 58 + DID string `gorm:"size:255;not null;index:idx_lists_did_rkey,unique"` 59 + Rkey string `gorm:"size:512;not null;index:idx_lists_did_rkey,unique"` 60 + Name string `gorm:"size:500;not null"` 61 + Description string `gorm:"type:text"` 62 + Podcasts []byte `gorm:"type:jsonb;not null"` 63 + CreatedAt string `gorm:"size:64;not null"` 64 + IndexedAt time.Time `gorm:"autoCreateTime"` 65 + } 66 + 67 + type Bookmark struct { 68 + ID uint `gorm:"primaryKey"` 69 + DID string `gorm:"size:255;not null;index:idx_bookmarks_did_rkey,unique"` 70 + Rkey string `gorm:"size:512;not null;index:idx_bookmarks_did_rkey,unique"` 71 + FeedID int `gorm:"not null;index:idx_bookmarks_episode"` 72 + EpisodeID int `gorm:"not null;index:idx_bookmarks_episode"` 73 + EpisodeGuid string `gorm:"size:512"` 74 + PodcastGuid string `gorm:"size:512"` 75 + TimestampS *int `gorm:"index"` 76 + CreatedAt string `gorm:"size:64;not null"` 77 + IndexedAt time.Time `gorm:"autoCreateTime"` 78 + } 79 + 80 + type Profile struct { 81 + ID uint `gorm:"primaryKey"` 82 + DID string `gorm:"size:255;not null;uniqueIndex"` 83 + DisplayName string `gorm:"size:640"` 84 + Description string `gorm:"type:text"` 85 + FavoriteGenres []byte `gorm:"type:jsonb"` 86 + IndexedAt time.Time `gorm:"autoCreateTime"` 87 + }
+182
appview/firehose.go
··· 1 + package appview 2 + 3 + import ( 4 + "bytes" 5 + "context" 6 + "fmt" 7 + "net/http" 8 + "net/url" 9 + "strings" 10 + "sync/atomic" 11 + "time" 12 + 13 + "github.com/SparrowTek/effem-appview/appview/database" 14 + comatproto "github.com/bluesky-social/indigo/api/atproto" 15 + "github.com/bluesky-social/indigo/atproto/syntax" 16 + "github.com/bluesky-social/indigo/events" 17 + "github.com/bluesky-social/indigo/events/schedulers/parallel" 18 + lexutil "github.com/bluesky-social/indigo/lex/util" 19 + "github.com/bluesky-social/indigo/repo" 20 + "github.com/bluesky-social/indigo/repomgr" 21 + "github.com/gorilla/websocket" 22 + "gorm.io/gorm/clause" 23 + ) 24 + 25 + const effemNSPrefix = "xyz.effem." 26 + 27 + func (srv *Server) RunFirehoseConsumer(ctx context.Context) error { 28 + cursor, err := srv.loadFirehoseCursor() 29 + if err != nil { 30 + srv.logger.Warn("no saved cursor, starting from live", "err", err) 31 + } 32 + 33 + u, err := url.Parse(srv.config.RelayHost) 34 + if err != nil { 35 + return fmt.Errorf("parsing relay host: %w", err) 36 + } 37 + u.Path = "xrpc/com.atproto.sync.subscribeRepos" 38 + if cursor > 0 { 39 + u.RawQuery = fmt.Sprintf("cursor=%d", cursor) 40 + } 41 + 42 + srv.logger.Info("connecting to firehose", "url", u.String(), "cursor", cursor) 43 + 44 + dialer := websocket.DefaultDialer 45 + con, _, err := dialer.DialContext(ctx, u.String(), http.Header{ 46 + "User-Agent": []string{"effem-appview/1.0"}, 47 + }) 48 + if err != nil { 49 + return fmt.Errorf("dialing firehose: %w", err) 50 + } 51 + defer con.Close() 52 + 53 + rsc := &events.RepoStreamCallbacks{ 54 + RepoCommit: func(evt *comatproto.SyncSubscribeRepos_Commit) error { 55 + atomic.StoreInt64(&srv.lastSeq, evt.Seq) 56 + return srv.handleCommit(ctx, evt) 57 + }, 58 + RepoIdentity: func(evt *comatproto.SyncSubscribeRepos_Identity) error { 59 + atomic.StoreInt64(&srv.lastSeq, evt.Seq) 60 + srv.logger.Debug("identity event", "did", evt.Did) 61 + return nil 62 + }, 63 + } 64 + 65 + scheduler := parallel.NewScheduler( 66 + srv.config.FirehoseParallel, 67 + 1000, 68 + srv.config.RelayHost, 69 + rsc.EventHandler, 70 + ) 71 + 72 + go srv.persistCursorLoop(ctx) 73 + 74 + srv.logger.Info("firehose consumer running") 75 + return events.HandleRepoStream(ctx, con, scheduler, srv.logger) 76 + } 77 + 78 + func (srv *Server) handleCommit(ctx context.Context, evt *comatproto.SyncSubscribeRepos_Commit) error { 79 + if evt.TooBig { 80 + srv.logger.Warn("skipping tooBig commit", "repo", evt.Repo, "seq", evt.Seq) 81 + return nil 82 + } 83 + 84 + var rr *repo.Repo 85 + if len(evt.Blocks) > 0 { 86 + var err error 87 + rr, err = repo.ReadRepoFromCar(ctx, bytes.NewReader(evt.Blocks)) 88 + if err != nil { 89 + srv.logger.Warn("failed to read repo from car", "err", err, "did", evt.Repo) 90 + return nil 91 + } 92 + } 93 + 94 + for _, op := range evt.Ops { 95 + collection, rkey, err := syntax.ParseRepoPath(op.Path) 96 + if err != nil { 97 + srv.logger.Warn("invalid repo path", "path", op.Path, "err", err) 98 + continue 99 + } 100 + collectionName := collection.String() 101 + if !strings.HasPrefix(collectionName, effemNSPrefix) { 102 + continue 103 + } 104 + 105 + switch repomgr.EventKind(op.Action) { 106 + case repomgr.EvtKindCreateRecord, repomgr.EvtKindUpdateRecord: 107 + if rr == nil { 108 + srv.logger.Warn("missing CAR blocks for create/update", "path", op.Path) 109 + continue 110 + } 111 + recCID, recCBOR, err := rr.GetRecordBytes(ctx, op.Path) 112 + if err != nil { 113 + srv.logger.Warn("failed to get record", "err", err, "path", op.Path) 114 + continue 115 + } 116 + if op.Cid != nil && lexutil.LexLink(recCID) != *op.Cid { 117 + srv.logger.Warn("record CID mismatch", "path", op.Path, "carCID", recCID, "opCID", op.Cid) 118 + continue 119 + } 120 + if recCBOR == nil { 121 + srv.logger.Warn("nil record payload", "path", op.Path) 122 + continue 123 + } 124 + if err := srv.indexer.IndexRecord(ctx, evt.Repo, collectionName, rkey.String(), *recCBOR); err != nil { 125 + srv.logger.Warn("failed to index record", "err", err, "path", op.Path) 126 + } 127 + case repomgr.EvtKindDeleteRecord: 128 + if err := srv.indexer.DeleteRecord(ctx, evt.Repo, collectionName, rkey.String()); err != nil { 129 + srv.logger.Warn("failed to delete record", "err", err, "path", op.Path) 130 + } 131 + default: 132 + continue 133 + } 134 + } 135 + 136 + return nil 137 + } 138 + 139 + func (srv *Server) persistCursorLoop(ctx context.Context) { 140 + ticker := time.NewTicker(5 * time.Second) 141 + defer ticker.Stop() 142 + 143 + for { 144 + select { 145 + case <-ctx.Done(): 146 + seq := atomic.LoadInt64(&srv.lastSeq) 147 + if seq > 0 { 148 + if err := srv.saveFirehoseCursor(seq); err != nil { 149 + srv.logger.Warn("failed to persist final cursor", "err", err, "seq", seq) 150 + } 151 + } 152 + return 153 + case <-ticker.C: 154 + seq := atomic.LoadInt64(&srv.lastSeq) 155 + if seq > 0 { 156 + if err := srv.saveFirehoseCursor(seq); err != nil { 157 + srv.logger.Warn("failed to persist cursor", "err", err, "seq", seq) 158 + } 159 + } 160 + } 161 + } 162 + } 163 + 164 + func (srv *Server) loadFirehoseCursor() (int64, error) { 165 + var cur database.FirehoseCursor 166 + err := srv.db.Where("name = ?", database.DefaultCursorName).First(&cur).Error 167 + if err != nil { 168 + return 0, err 169 + } 170 + return cur.Seq, nil 171 + } 172 + 173 + func (srv *Server) saveFirehoseCursor(seq int64) error { 174 + cur := database.FirehoseCursor{ 175 + Name: database.DefaultCursorName, 176 + Seq: seq, 177 + } 178 + return srv.db.Clauses(clause.OnConflict{ 179 + Columns: []clause.Column{{Name: "name"}}, 180 + DoUpdates: clause.AssignmentColumns([]string{"seq", "updated_at"}), 181 + }).Create(&cur).Error 182 + }
+44
appview/handlers/bookmark.go
··· 1 + package handlers 2 + 3 + import ( 4 + "net/http" 5 + 6 + "github.com/SparrowTek/effem-appview/appview/database" 7 + "github.com/labstack/echo/v4" 8 + ) 9 + 10 + func (h *Handlers) GetBookmarks(c echo.Context) error { 11 + did := c.QueryParam("did") 12 + if did == "" { 13 + return writeError(c, http.StatusBadRequest, "InvalidRequest", "did is required") 14 + } 15 + 16 + feedID := parseInt(c.QueryParam("feedId"), 0) 17 + episodeID := parseInt(c.QueryParam("episodeId"), 0) 18 + limit := parseLimit(c.QueryParam("limit"), 50, 100) 19 + cursor := c.QueryParam("cursor") 20 + 21 + q := h.db.WithContext(c.Request().Context()).Model(&database.Bookmark{}).Where("did = ?", did).Order("rkey DESC").Limit(limit + 1) 22 + if feedID > 0 { 23 + q = q.Where("feed_id = ?", feedID) 24 + } 25 + if episodeID > 0 { 26 + q = q.Where("episode_id = ?", episodeID) 27 + } 28 + if cursor != "" { 29 + q = q.Where("rkey < ?", cursor) 30 + } 31 + 32 + var rows []database.Bookmark 33 + if err := q.Find(&rows).Error; err != nil { 34 + return writeError(c, http.StatusInternalServerError, "InternalError", "") 35 + } 36 + 37 + nextCursor := "" 38 + if len(rows) > limit { 39 + nextCursor = rows[limit-1].Rkey 40 + rows = rows[:limit] 41 + } 42 + 43 + return c.JSON(http.StatusOK, map[string]any{"bookmarks": rows, "cursor": nextCursor}) 44 + }
+65
appview/handlers/comment.go
··· 1 + package handlers 2 + 3 + import ( 4 + "net/http" 5 + 6 + "github.com/SparrowTek/effem-appview/appview/database" 7 + "github.com/labstack/echo/v4" 8 + ) 9 + 10 + func (h *Handlers) GetComments(c echo.Context) error { 11 + feedID := parseInt(c.QueryParam("feedId"), 0) 12 + episodeID := parseInt(c.QueryParam("episodeId"), 0) 13 + if feedID <= 0 || episodeID <= 0 { 14 + return writeError(c, http.StatusBadRequest, "InvalidRequest", "feedId and episodeId are required") 15 + } 16 + 17 + limit := parseLimit(c.QueryParam("limit"), 50, 100) 18 + cursor := c.QueryParam("cursor") 19 + 20 + query := h.db.WithContext(c.Request().Context()). 21 + Where("feed_id = ? AND episode_id = ?", feedID, episodeID). 22 + Order("rkey DESC"). 23 + Limit(limit + 1) 24 + if cursor != "" { 25 + query = query.Where("rkey < ?", cursor) 26 + } 27 + 28 + var comments []database.Comment 29 + if err := query.Find(&comments).Error; err != nil { 30 + return writeError(c, http.StatusInternalServerError, "InternalError", "") 31 + } 32 + 33 + nextCursor := "" 34 + if len(comments) > limit { 35 + nextCursor = comments[limit-1].Rkey 36 + comments = comments[:limit] 37 + } 38 + 39 + return c.JSON(http.StatusOK, map[string]any{ 40 + "comments": comments, 41 + "cursor": nextCursor, 42 + }) 43 + } 44 + 45 + func (h *Handlers) GetCommentThread(c echo.Context) error { 46 + uri := c.QueryParam("uri") 47 + if uri == "" { 48 + return writeError(c, http.StatusBadRequest, "InvalidRequest", "uri is required") 49 + } 50 + 51 + var root database.Comment 52 + if err := h.db.WithContext(c.Request().Context()).Where("at_uri = ?", uri).First(&root).Error; err != nil { 53 + return writeError(c, http.StatusNotFound, "NotFound", "comment not found") 54 + } 55 + 56 + var replies []database.Comment 57 + if err := h.db.WithContext(c.Request().Context()).Where("root_uri = ?", root.ATURI).Order("created_at ASC").Find(&replies).Error; err != nil { 58 + return writeError(c, http.StatusInternalServerError, "InternalError", "") 59 + } 60 + 61 + return c.JSON(http.StatusOK, map[string]any{ 62 + "root": root, 63 + "replies": replies, 64 + }) 65 + }
+36
appview/handlers/episodes.go
··· 1 + package handlers 2 + 3 + import ( 4 + "net/http" 5 + 6 + "github.com/labstack/echo/v4" 7 + ) 8 + 9 + func (h *Handlers) GetEpisodes(c echo.Context) error { 10 + feedID := parseInt(c.QueryParam("feedId"), 0) 11 + if feedID <= 0 { 12 + return writeError(c, http.StatusBadRequest, "InvalidRequest", "feedId is required") 13 + } 14 + max := parseLimit(c.QueryParam("max"), 50, 200) 15 + 16 + payload, err := h.pi.GetEpisodesByFeedID(feedID, max) 17 + if err != nil { 18 + h.logger.Warn("get episodes failed", "err", err, "feedId", feedID) 19 + return writeError(c, http.StatusBadGateway, "UpstreamError", "podcast index request failed") 20 + } 21 + return writeJSONBlob(c, payload) 22 + } 23 + 24 + func (h *Handlers) GetEpisode(c echo.Context) error { 25 + episodeID := parseInt(c.QueryParam("episodeId"), 0) 26 + if episodeID <= 0 { 27 + return writeError(c, http.StatusBadRequest, "InvalidRequest", "episodeId is required") 28 + } 29 + 30 + payload, err := h.pi.GetEpisodeByID(episodeID) 31 + if err != nil { 32 + h.logger.Warn("get episode failed", "err", err, "episodeId", episodeID) 33 + return writeError(c, http.StatusBadGateway, "UpstreamError", "podcast index request failed") 34 + } 35 + return writeJSONBlob(c, payload) 36 + }
+56
appview/handlers/handlers.go
··· 1 + package handlers 2 + 3 + import ( 4 + "encoding/json" 5 + "log/slog" 6 + "net/http" 7 + "strconv" 8 + 9 + "github.com/SparrowTek/effem-appview/appview/podcastindex" 10 + "github.com/labstack/echo/v4" 11 + "gorm.io/gorm" 12 + ) 13 + 14 + type Handlers struct { 15 + db *gorm.DB 16 + pi *podcastindex.CachedClient 17 + logger *slog.Logger 18 + } 19 + 20 + func New(db *gorm.DB, pi *podcastindex.CachedClient, logger *slog.Logger) *Handlers { 21 + return &Handlers{db: db, pi: pi, logger: logger} 22 + } 23 + 24 + func parseInt(raw string, fallback int) int { 25 + if raw == "" { 26 + return fallback 27 + } 28 + v, err := strconv.Atoi(raw) 29 + if err != nil { 30 + return fallback 31 + } 32 + return v 33 + } 34 + 35 + func parseLimit(raw string, fallback int, max int) int { 36 + v := parseInt(raw, fallback) 37 + if v <= 0 { 38 + return fallback 39 + } 40 + if v > max { 41 + return max 42 + } 43 + return v 44 + } 45 + 46 + func writeError(c echo.Context, status int, code, message string) error { 47 + payload := map[string]string{"error": code} 48 + if message != "" { 49 + payload["message"] = message 50 + } 51 + return c.JSON(status, payload) 52 + } 53 + 54 + func writeJSONBlob(c echo.Context, payload json.RawMessage) error { 55 + return c.Blob(http.StatusOK, echo.MIMEApplicationJSONCharsetUTF8, payload) 56 + }
+43
appview/handlers/inbox.go
··· 1 + package handlers 2 + 3 + import ( 4 + "net/http" 5 + 6 + "github.com/SparrowTek/effem-appview/appview/database" 7 + "github.com/labstack/echo/v4" 8 + ) 9 + 10 + func (h *Handlers) GetInbox(c echo.Context) error { 11 + did := c.QueryParam("did") 12 + if did == "" { 13 + return writeError(c, http.StatusBadRequest, "InvalidRequest", "did is required") 14 + } 15 + 16 + limit := parseLimit(c.QueryParam("limit"), 50, 100) 17 + 18 + var subs []database.Subscription 19 + if err := h.db.WithContext(c.Request().Context()).Where("did = ?", did).Find(&subs).Error; err != nil { 20 + return writeError(c, http.StatusInternalServerError, "InternalError", "") 21 + } 22 + 23 + if len(subs) == 0 { 24 + return c.JSON(http.StatusOK, map[string]any{"items": []any{}}) 25 + } 26 + 27 + feedIDs := make([]int, 0, len(subs)) 28 + for _, s := range subs { 29 + feedIDs = append(feedIDs, s.FeedID) 30 + } 31 + 32 + var items []database.Comment 33 + err := h.db.WithContext(c.Request().Context()). 34 + Where("feed_id IN ?", feedIDs). 35 + Order("created_at DESC"). 36 + Limit(limit). 37 + Find(&items).Error 38 + if err != nil { 39 + return writeError(c, http.StatusInternalServerError, "InternalError", "") 40 + } 41 + 42 + return c.JSON(http.StatusOK, map[string]any{"items": items}) 43 + }
+57
appview/handlers/list.go
··· 1 + package handlers 2 + 3 + import ( 4 + "encoding/json" 5 + "net/http" 6 + 7 + "github.com/SparrowTek/effem-appview/appview/database" 8 + "github.com/labstack/echo/v4" 9 + ) 10 + 11 + func (h *Handlers) GetList(c echo.Context) error { 12 + did := c.QueryParam("did") 13 + rkey := c.QueryParam("rkey") 14 + if did == "" || rkey == "" { 15 + return writeError(c, http.StatusBadRequest, "InvalidRequest", "did and rkey are required") 16 + } 17 + 18 + var list database.PodcastList 19 + if err := h.db.WithContext(c.Request().Context()).Where("did = ? AND rkey = ?", did, rkey).First(&list).Error; err != nil { 20 + return writeError(c, http.StatusNotFound, "NotFound", "list not found") 21 + } 22 + 23 + var podcasts []map[string]any 24 + if len(list.Podcasts) > 0 { 25 + _ = json.Unmarshal(list.Podcasts, &podcasts) 26 + } 27 + 28 + return c.JSON(http.StatusOK, map[string]any{"list": list, "podcasts": podcasts}) 29 + } 30 + 31 + func (h *Handlers) GetLists(c echo.Context) error { 32 + did := c.QueryParam("did") 33 + if did == "" { 34 + return writeError(c, http.StatusBadRequest, "InvalidRequest", "did is required") 35 + } 36 + 37 + limit := parseLimit(c.QueryParam("limit"), 50, 100) 38 + cursor := c.QueryParam("cursor") 39 + 40 + q := h.db.WithContext(c.Request().Context()).Where("did = ?", did).Order("rkey DESC").Limit(limit + 1) 41 + if cursor != "" { 42 + q = q.Where("rkey < ?", cursor) 43 + } 44 + 45 + var rows []database.PodcastList 46 + if err := q.Find(&rows).Error; err != nil { 47 + return writeError(c, http.StatusInternalServerError, "InternalError", "") 48 + } 49 + 50 + nextCursor := "" 51 + if len(rows) > limit { 52 + nextCursor = rows[limit-1].Rkey 53 + rows = rows[:limit] 54 + } 55 + 56 + return c.JSON(http.StatusOK, map[string]any{"lists": rows, "cursor": nextCursor}) 57 + }
+43
appview/handlers/podcast.go
··· 1 + package handlers 2 + 3 + import ( 4 + "net/http" 5 + 6 + "github.com/labstack/echo/v4" 7 + ) 8 + 9 + func (h *Handlers) GetPodcast(c echo.Context) error { 10 + feedID := parseInt(c.QueryParam("feedId"), 0) 11 + if feedID <= 0 { 12 + return writeError(c, http.StatusBadRequest, "InvalidRequest", "feedId is required") 13 + } 14 + 15 + payload, err := h.pi.GetPodcastByFeedID(feedID) 16 + if err != nil { 17 + h.logger.Warn("get podcast failed", "err", err, "feedId", feedID) 18 + return writeError(c, http.StatusBadGateway, "UpstreamError", "podcast index request failed") 19 + } 20 + return writeJSONBlob(c, payload) 21 + } 22 + 23 + func (h *Handlers) GetTrending(c echo.Context) error { 24 + max := parseLimit(c.QueryParam("max"), 20, 100) 25 + lang := c.QueryParam("lang") 26 + categories := c.QueryParam("categories") 27 + 28 + payload, err := h.pi.GetTrending(max, lang, categories) 29 + if err != nil { 30 + h.logger.Warn("get trending failed", "err", err) 31 + return writeError(c, http.StatusBadGateway, "UpstreamError", "podcast index request failed") 32 + } 33 + return writeJSONBlob(c, payload) 34 + } 35 + 36 + func (h *Handlers) GetCategories(c echo.Context) error { 37 + payload, err := h.pi.GetCategories() 38 + if err != nil { 39 + h.logger.Warn("get categories failed", "err", err) 40 + return writeError(c, http.StatusBadGateway, "UpstreamError", "podcast index request failed") 41 + } 42 + return writeJSONBlob(c, payload) 43 + }
+33
appview/handlers/profile.go
··· 1 + package handlers 2 + 3 + import ( 4 + "encoding/json" 5 + "net/http" 6 + 7 + "github.com/SparrowTek/effem-appview/appview/database" 8 + "github.com/labstack/echo/v4" 9 + ) 10 + 11 + func (h *Handlers) GetProfile(c echo.Context) error { 12 + did := c.QueryParam("did") 13 + if did == "" { 14 + return writeError(c, http.StatusBadRequest, "InvalidRequest", "did is required") 15 + } 16 + 17 + var profile database.Profile 18 + if err := h.db.WithContext(c.Request().Context()).Where("did = ?", did).First(&profile).Error; err != nil { 19 + return writeError(c, http.StatusNotFound, "NotFound", "profile not found") 20 + } 21 + 22 + genres := []string{} 23 + if len(profile.FavoriteGenres) > 0 { 24 + _ = json.Unmarshal(profile.FavoriteGenres, &genres) 25 + } 26 + 27 + return c.JSON(http.StatusOK, map[string]any{ 28 + "did": profile.DID, 29 + "displayName": profile.DisplayName, 30 + "description": profile.Description, 31 + "favoriteGenres": genres, 32 + }) 33 + }
+63
appview/handlers/recommendation.go
··· 1 + package handlers 2 + 3 + import ( 4 + "net/http" 5 + 6 + "github.com/SparrowTek/effem-appview/appview/database" 7 + "github.com/labstack/echo/v4" 8 + ) 9 + 10 + func (h *Handlers) GetRecommendations(c echo.Context) error { 11 + feedID := parseInt(c.QueryParam("feedId"), 0) 12 + episodeID := parseInt(c.QueryParam("episodeId"), 0) 13 + limit := parseLimit(c.QueryParam("limit"), 50, 100) 14 + cursor := c.QueryParam("cursor") 15 + 16 + q := h.db.WithContext(c.Request().Context()).Model(&database.Recommendation{}).Order("rkey DESC").Limit(limit + 1) 17 + if feedID > 0 { 18 + q = q.Where("feed_id = ?", feedID) 19 + } 20 + if episodeID > 0 { 21 + q = q.Where("episode_id = ?", episodeID) 22 + } 23 + if cursor != "" { 24 + q = q.Where("rkey < ?", cursor) 25 + } 26 + 27 + var rows []database.Recommendation 28 + if err := q.Find(&rows).Error; err != nil { 29 + return writeError(c, http.StatusInternalServerError, "InternalError", "") 30 + } 31 + 32 + nextCursor := "" 33 + if len(rows) > limit { 34 + nextCursor = rows[limit-1].Rkey 35 + rows = rows[:limit] 36 + } 37 + 38 + return c.JSON(http.StatusOK, map[string]any{"recommendations": rows, "cursor": nextCursor}) 39 + } 40 + 41 + type popularRow struct { 42 + FeedID int `json:"feedId"` 43 + EpisodeID int `json:"episodeId"` 44 + Count int64 `json:"count"` 45 + } 46 + 47 + func (h *Handlers) GetPopular(c echo.Context) error { 48 + limit := parseLimit(c.QueryParam("limit"), 20, 100) 49 + var rows []popularRow 50 + 51 + err := h.db.WithContext(c.Request().Context()). 52 + Model(&database.Recommendation{}). 53 + Select("feed_id, episode_id, COUNT(*) as count"). 54 + Group("feed_id, episode_id"). 55 + Order("count DESC"). 56 + Limit(limit). 57 + Scan(&rows).Error 58 + if err != nil { 59 + return writeError(c, http.StatusInternalServerError, "InternalError", "") 60 + } 61 + 62 + return c.JSON(http.StatusOK, map[string]any{"items": rows}) 63 + }
+37
appview/handlers/search.go
··· 1 + package handlers 2 + 3 + import ( 4 + "net/http" 5 + 6 + "github.com/labstack/echo/v4" 7 + ) 8 + 9 + func (h *Handlers) SearchPodcasts(c echo.Context) error { 10 + q := c.QueryParam("q") 11 + if q == "" { 12 + return writeError(c, http.StatusBadRequest, "InvalidRequest", "q is required") 13 + } 14 + max := parseLimit(c.QueryParam("max"), 20, 100) 15 + 16 + payload, err := h.pi.SearchByTerm(q, max) 17 + if err != nil { 18 + h.logger.Warn("podcast search failed", "err", err) 19 + return writeError(c, http.StatusBadGateway, "UpstreamError", "podcast index request failed") 20 + } 21 + return writeJSONBlob(c, payload) 22 + } 23 + 24 + func (h *Handlers) SearchEpisodes(c echo.Context) error { 25 + q := c.QueryParam("q") 26 + if q == "" { 27 + return writeError(c, http.StatusBadRequest, "InvalidRequest", "q is required") 28 + } 29 + max := parseLimit(c.QueryParam("max"), 20, 100) 30 + 31 + payload, err := h.pi.SearchEpisodesByTerm(q, max) 32 + if err != nil { 33 + h.logger.Warn("episode search failed", "err", err) 34 + return writeError(c, http.StatusBadGateway, "UpstreamError", "podcast index request failed") 35 + } 36 + return writeJSONBlob(c, payload) 37 + }
+56
appview/handlers/subscription.go
··· 1 + package handlers 2 + 3 + import ( 4 + "net/http" 5 + 6 + "github.com/SparrowTek/effem-appview/appview/database" 7 + "github.com/labstack/echo/v4" 8 + ) 9 + 10 + func (h *Handlers) GetSubscriptions(c echo.Context) error { 11 + did := c.QueryParam("did") 12 + if did == "" { 13 + return writeError(c, http.StatusBadRequest, "InvalidRequest", "did is required") 14 + } 15 + 16 + limit := parseLimit(c.QueryParam("limit"), 50, 100) 17 + cursor := c.QueryParam("cursor") 18 + 19 + q := h.db.WithContext(c.Request().Context()).Where("did = ?", did).Order("rkey DESC").Limit(limit + 1) 20 + if cursor != "" { 21 + q = q.Where("rkey < ?", cursor) 22 + } 23 + 24 + var rows []database.Subscription 25 + if err := q.Find(&rows).Error; err != nil { 26 + return writeError(c, http.StatusInternalServerError, "InternalError", "") 27 + } 28 + 29 + nextCursor := "" 30 + if len(rows) > limit { 31 + nextCursor = rows[limit-1].Rkey 32 + rows = rows[:limit] 33 + } 34 + 35 + return c.JSON(http.StatusOK, map[string]any{ 36 + "subscriptions": rows, 37 + "cursor": nextCursor, 38 + }) 39 + } 40 + 41 + func (h *Handlers) GetSubscribers(c echo.Context) error { 42 + feedID := parseInt(c.QueryParam("feedId"), 0) 43 + if feedID <= 0 { 44 + return writeError(c, http.StatusBadRequest, "InvalidRequest", "feedId is required") 45 + } 46 + 47 + var count int64 48 + if err := h.db.WithContext(c.Request().Context()).Model(&database.Subscription{}).Where("feed_id = ?", feedID).Count(&count).Error; err != nil { 49 + return writeError(c, http.StatusInternalServerError, "InternalError", "") 50 + } 51 + 52 + return c.JSON(http.StatusOK, map[string]any{ 53 + "feedId": feedID, 54 + "subscribers": count, 55 + }) 56 + }
+60
appview/indexer/bookmark.go
··· 1 + package indexer 2 + 3 + import ( 4 + "context" 5 + "fmt" 6 + 7 + "github.com/SparrowTek/effem-appview/appview/database" 8 + ) 9 + 10 + func (idx *Indexer) indexBookmark(ctx context.Context, did, rkey string, rec map[string]any) error { 11 + episode, ok := asMap(rec["episode"]) 12 + if !ok { 13 + return fmt.Errorf("bookmark missing episode object") 14 + } 15 + feedID, ok := asInt(episode["feedId"]) 16 + if !ok || feedID <= 0 { 17 + return fmt.Errorf("bookmark missing valid episode.feedId") 18 + } 19 + episodeID, ok := asInt(episode["episodeId"]) 20 + if !ok || episodeID <= 0 { 21 + return fmt.Errorf("bookmark missing valid episode.episodeId") 22 + } 23 + 24 + bookmark := database.Bookmark{ 25 + DID: did, 26 + Rkey: rkey, 27 + FeedID: feedID, 28 + EpisodeID: episodeID, 29 + EpisodeGuid: asString(episode["episodeGuid"]), 30 + PodcastGuid: asString(episode["podcastGuid"]), 31 + CreatedAt: asString(rec["createdAt"]), 32 + } 33 + if ts, ok := asInt(rec["timestamp"]); ok { 34 + bookmark.TimestampS = &ts 35 + } 36 + 37 + db := idx.db.WithContext(ctx) 38 + return db.Where("did = ? AND rkey = ?", did, rkey).Assign(bookmark).FirstOrCreate(&bookmark).Error 39 + } 40 + 41 + func (idx *Indexer) indexProfile(ctx context.Context, did string, rec map[string]any) error { 42 + genresRaw, _ := rec["favoriteGenres"].([]any) 43 + genres := make([]string, 0, len(genresRaw)) 44 + for _, g := range genresRaw { 45 + s := asString(g) 46 + if s != "" { 47 + genres = append(genres, s) 48 + } 49 + } 50 + 51 + profile := database.Profile{ 52 + DID: did, 53 + DisplayName: asString(rec["displayName"]), 54 + Description: asString(rec["description"]), 55 + FavoriteGenres: jsonBytes(genres), 56 + } 57 + 58 + db := idx.db.WithContext(ctx) 59 + return db.Where("did = ?", did).Assign(profile).FirstOrCreate(&profile).Error 60 + }
+53
appview/indexer/comment.go
··· 1 + package indexer 2 + 3 + import ( 4 + "context" 5 + "fmt" 6 + 7 + "github.com/SparrowTek/effem-appview/appview/database" 8 + ) 9 + 10 + func (idx *Indexer) indexComment(ctx context.Context, did, rkey string, rec map[string]any) error { 11 + episode, ok := asMap(rec["episode"]) 12 + if !ok { 13 + return fmt.Errorf("comment missing episode object") 14 + } 15 + feedID, ok := asInt(episode["feedId"]) 16 + if !ok || feedID <= 0 { 17 + return fmt.Errorf("comment missing valid episode.feedId") 18 + } 19 + episodeID, ok := asInt(episode["episodeId"]) 20 + if !ok || episodeID <= 0 { 21 + return fmt.Errorf("comment missing valid episode.episodeId") 22 + } 23 + 24 + comment := database.Comment{ 25 + DID: did, 26 + Rkey: rkey, 27 + ATURI: fmt.Sprintf("at://%s/xyz.effem.feed.comment/%s", did, rkey), 28 + FeedID: feedID, 29 + EpisodeID: episodeID, 30 + EpisodeGuid: asString(episode["episodeGuid"]), 31 + PodcastGuid: asString(episode["podcastGuid"]), 32 + Text: asString(rec["text"]), 33 + CreatedAt: asString(rec["createdAt"]), 34 + } 35 + 36 + if ts, ok := asInt(rec["timestamp"]); ok { 37 + comment.TimestampS = &ts 38 + } 39 + 40 + if reply, ok := asMap(rec["reply"]); ok { 41 + if root, ok := asMap(reply["root"]); ok { 42 + comment.RootURI = asString(root["uri"]) 43 + comment.RootCID = asString(root["cid"]) 44 + } 45 + if parent, ok := asMap(reply["parent"]); ok { 46 + comment.ParentURI = asString(parent["uri"]) 47 + comment.ParentCID = asString(parent["cid"]) 48 + } 49 + } 50 + 51 + db := idx.db.WithContext(ctx) 52 + return db.Where("did = ? AND rkey = ?", did, rkey).Assign(comment).FirstOrCreate(&comment).Error 53 + }
+116
appview/indexer/indexer.go
··· 1 + package indexer 2 + 3 + import ( 4 + "context" 5 + "encoding/json" 6 + "fmt" 7 + "log/slog" 8 + 9 + "github.com/SparrowTek/effem-appview/appview/database" 10 + "github.com/bluesky-social/indigo/atproto/atdata" 11 + "gorm.io/gorm" 12 + ) 13 + 14 + type Indexer struct { 15 + db *gorm.DB 16 + logger *slog.Logger 17 + } 18 + 19 + func New(db *gorm.DB, logger *slog.Logger) *Indexer { 20 + return &Indexer{db: db, logger: logger.With("component", "indexer")} 21 + } 22 + 23 + func (idx *Indexer) IndexRecord(ctx context.Context, did, collection, rkey string, data []byte) error { 24 + rec, err := atdata.UnmarshalCBOR(data) 25 + if err != nil { 26 + return fmt.Errorf("decoding record cbor: %w", err) 27 + } 28 + 29 + switch collection { 30 + case "xyz.effem.feed.subscription": 31 + return idx.indexSubscription(ctx, did, rkey, rec) 32 + case "xyz.effem.feed.comment": 33 + return idx.indexComment(ctx, did, rkey, rec) 34 + case "xyz.effem.feed.recommendation": 35 + return idx.indexRecommendation(ctx, did, rkey, rec) 36 + case "xyz.effem.feed.list": 37 + return idx.indexList(ctx, did, rkey, rec) 38 + case "xyz.effem.feed.bookmark": 39 + return idx.indexBookmark(ctx, did, rkey, rec) 40 + case "xyz.effem.actor.profile": 41 + return idx.indexProfile(ctx, did, rec) 42 + default: 43 + idx.logger.Debug("unknown collection", "collection", collection) 44 + return nil 45 + } 46 + } 47 + 48 + func (idx *Indexer) DeleteRecord(ctx context.Context, did, collection, rkey string) error { 49 + db := idx.db.WithContext(ctx) 50 + switch collection { 51 + case "xyz.effem.feed.subscription": 52 + return db.Where("did = ? AND rkey = ?", did, rkey).Delete(&database.Subscription{}).Error 53 + case "xyz.effem.feed.comment": 54 + return db.Where("did = ? AND rkey = ?", did, rkey).Delete(&database.Comment{}).Error 55 + case "xyz.effem.feed.recommendation": 56 + return db.Where("did = ? AND rkey = ?", did, rkey).Delete(&database.Recommendation{}).Error 57 + case "xyz.effem.feed.list": 58 + return db.Where("did = ? AND rkey = ?", did, rkey).Delete(&database.PodcastList{}).Error 59 + case "xyz.effem.feed.bookmark": 60 + return db.Where("did = ? AND rkey = ?", did, rkey).Delete(&database.Bookmark{}).Error 61 + case "xyz.effem.actor.profile": 62 + return db.Where("did = ?", did).Delete(&database.Profile{}).Error 63 + default: 64 + return nil 65 + } 66 + } 67 + 68 + func asMap(v any) (map[string]any, bool) { 69 + m, ok := v.(map[string]any) 70 + return m, ok 71 + } 72 + 73 + func asString(v any) string { 74 + s, ok := v.(string) 75 + if !ok { 76 + return "" 77 + } 78 + return s 79 + } 80 + 81 + func asInt(v any) (int, bool) { 82 + switch x := v.(type) { 83 + case int: 84 + return x, true 85 + case int8: 86 + return int(x), true 87 + case int16: 88 + return int(x), true 89 + case int32: 90 + return int(x), true 91 + case int64: 92 + return int(x), true 93 + case uint: 94 + return int(x), true 95 + case uint8: 96 + return int(x), true 97 + case uint16: 98 + return int(x), true 99 + case uint32: 100 + return int(x), true 101 + case uint64: 102 + return int(x), true 103 + case float64: 104 + return int(x), true 105 + default: 106 + return 0, false 107 + } 108 + } 109 + 110 + func jsonBytes(v any) []byte { 111 + b, err := json.Marshal(v) 112 + if err != nil { 113 + return nil 114 + } 115 + return b 116 + }
+21
appview/indexer/list.go
··· 1 + package indexer 2 + 3 + import ( 4 + "context" 5 + 6 + "github.com/SparrowTek/effem-appview/appview/database" 7 + ) 8 + 9 + func (idx *Indexer) indexList(ctx context.Context, did, rkey string, rec map[string]any) error { 10 + lst := database.PodcastList{ 11 + DID: did, 12 + Rkey: rkey, 13 + Name: asString(rec["name"]), 14 + Description: asString(rec["description"]), 15 + Podcasts: jsonBytes(rec["podcasts"]), 16 + CreatedAt: asString(rec["createdAt"]), 17 + } 18 + 19 + db := idx.db.WithContext(ctx) 20 + return db.Where("did = ? AND rkey = ?", did, rkey).Assign(lst).FirstOrCreate(&lst).Error 21 + }
+37
appview/indexer/recommendation.go
··· 1 + package indexer 2 + 3 + import ( 4 + "context" 5 + "fmt" 6 + 7 + "github.com/SparrowTek/effem-appview/appview/database" 8 + ) 9 + 10 + func (idx *Indexer) indexRecommendation(ctx context.Context, did, rkey string, rec map[string]any) error { 11 + subject, ok := asMap(rec["subject"]) 12 + if !ok { 13 + return fmt.Errorf("recommendation missing subject") 14 + } 15 + feedID, ok := asInt(subject["feedId"]) 16 + if !ok || feedID <= 0 { 17 + return fmt.Errorf("recommendation missing valid subject.feedId") 18 + } 19 + episodeID, ok := asInt(subject["episodeId"]) 20 + if !ok || episodeID <= 0 { 21 + return fmt.Errorf("recommendation missing valid subject.episodeId") 22 + } 23 + 24 + reco := database.Recommendation{ 25 + DID: did, 26 + Rkey: rkey, 27 + FeedID: feedID, 28 + EpisodeID: episodeID, 29 + EpisodeGuid: asString(subject["episodeGuid"]), 30 + PodcastGuid: asString(subject["podcastGuid"]), 31 + Text: asString(rec["text"]), 32 + CreatedAt: asString(rec["createdAt"]), 33 + } 34 + 35 + db := idx.db.WithContext(ctx) 36 + return db.Where("did = ? AND rkey = ?", did, rkey).Assign(reco).FirstOrCreate(&reco).Error 37 + }
+31
appview/indexer/subscription.go
··· 1 + package indexer 2 + 3 + import ( 4 + "context" 5 + "fmt" 6 + 7 + "github.com/SparrowTek/effem-appview/appview/database" 8 + ) 9 + 10 + func (idx *Indexer) indexSubscription(ctx context.Context, did, rkey string, rec map[string]any) error { 11 + podcast, ok := asMap(rec["podcast"]) 12 + if !ok { 13 + return fmt.Errorf("subscription missing podcast object") 14 + } 15 + feedID, ok := asInt(podcast["feedId"]) 16 + if !ok || feedID <= 0 { 17 + return fmt.Errorf("subscription missing valid podcast.feedId") 18 + } 19 + 20 + sub := database.Subscription{ 21 + DID: did, 22 + Rkey: rkey, 23 + FeedID: feedID, 24 + FeedURL: asString(podcast["feedUrl"]), 25 + PodcastGuid: asString(podcast["podcastGuid"]), 26 + CreatedAt: asString(rec["createdAt"]), 27 + } 28 + 29 + db := idx.db.WithContext(ctx) 30 + return db.Where("did = ? AND rkey = ?", did, rkey).Assign(sub).FirstOrCreate(&sub).Error 31 + }
+21
appview/podcastindex/auth.go
··· 1 + package podcastindex 2 + 3 + import ( 4 + "crypto/sha1" 5 + "encoding/hex" 6 + "net/http" 7 + "strconv" 8 + "time" 9 + ) 10 + 11 + func authHeaders(apiKey, apiSecret string) http.Header { 12 + now := strconv.FormatInt(time.Now().Unix(), 10) 13 + hash := sha1.Sum([]byte(apiKey + apiSecret + now)) 14 + 15 + return http.Header{ 16 + "X-Auth-Date": {now}, 17 + "X-Auth-Key": {apiKey}, 18 + "Authorization": {hex.EncodeToString(hash[:])}, 19 + "User-Agent": {"effem-appview/1.0"}, 20 + } 21 + }
+117
appview/podcastindex/cache.go
··· 1 + package podcastindex 2 + 3 + import ( 4 + "encoding/json" 5 + "errors" 6 + "fmt" 7 + "time" 8 + 9 + "gorm.io/gorm" 10 + "gorm.io/gorm/clause" 11 + ) 12 + 13 + type CachedResponse struct { 14 + ID uint `gorm:"primaryKey"` 15 + CacheKey string `gorm:"uniqueIndex;size:512"` 16 + Response json.RawMessage `gorm:"type:jsonb"` 17 + ExpiresAt time.Time `gorm:"index"` 18 + CreatedAt time.Time `gorm:"autoCreateTime"` 19 + UpdatedAt time.Time `gorm:"autoUpdateTime"` 20 + } 21 + 22 + type CachedClient struct { 23 + inner *Client 24 + db *gorm.DB 25 + } 26 + 27 + func NewCachedClient(inner *Client, db *gorm.DB) *CachedClient { 28 + return &CachedClient{inner: inner, db: db} 29 + } 30 + 31 + func RunMigrations(db *gorm.DB) error { 32 + return db.AutoMigrate(&CachedResponse{}) 33 + } 34 + 35 + func (cc *CachedClient) getOrFetch( 36 + cacheKey string, 37 + ttl time.Duration, 38 + fetcher func() (json.RawMessage, error), 39 + ) (json.RawMessage, error) { 40 + var cached CachedResponse 41 + err := cc.db.Where("cache_key = ? AND expires_at > ?", cacheKey, time.Now()).First(&cached).Error 42 + if err == nil { 43 + return cached.Response, nil 44 + } 45 + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) { 46 + return nil, err 47 + } 48 + 49 + data, err := fetcher() 50 + if err != nil { 51 + return nil, err 52 + } 53 + 54 + row := CachedResponse{ 55 + CacheKey: cacheKey, 56 + Response: data, 57 + ExpiresAt: time.Now().Add(ttl), 58 + } 59 + 60 + if err := cc.db.Clauses(clause.OnConflict{ 61 + Columns: []clause.Column{{Name: "cache_key"}}, 62 + DoUpdates: clause.AssignmentColumns([]string{"response", "expires_at", "updated_at"}), 63 + }).Create(&row).Error; err != nil { 64 + return nil, err 65 + } 66 + 67 + return data, nil 68 + } 69 + 70 + func (cc *CachedClient) SearchByTerm(query string, max int) (json.RawMessage, error) { 71 + key := fmt.Sprintf("search:podcasts:%s:%d", query, max) 72 + return cc.getOrFetch(key, time.Hour, func() (json.RawMessage, error) { 73 + return cc.inner.SearchByTerm(query, max) 74 + }) 75 + } 76 + 77 + func (cc *CachedClient) SearchEpisodesByTerm(query string, max int) (json.RawMessage, error) { 78 + key := fmt.Sprintf("search:episodes:%s:%d", query, max) 79 + return cc.getOrFetch(key, 15*time.Minute, func() (json.RawMessage, error) { 80 + return cc.inner.SearchEpisodesByTerm(query, max) 81 + }) 82 + } 83 + 84 + func (cc *CachedClient) GetPodcastByFeedID(feedID int) (json.RawMessage, error) { 85 + key := fmt.Sprintf("podcast:%d", feedID) 86 + return cc.getOrFetch(key, 24*time.Hour, func() (json.RawMessage, error) { 87 + return cc.inner.GetPodcastByFeedID(feedID) 88 + }) 89 + } 90 + 91 + func (cc *CachedClient) GetEpisodesByFeedID(feedID int, max int) (json.RawMessage, error) { 92 + key := fmt.Sprintf("episodes:%d:%d", feedID, max) 93 + return cc.getOrFetch(key, 15*time.Minute, func() (json.RawMessage, error) { 94 + return cc.inner.GetEpisodesByFeedID(feedID, max) 95 + }) 96 + } 97 + 98 + func (cc *CachedClient) GetEpisodeByID(episodeID int) (json.RawMessage, error) { 99 + key := fmt.Sprintf("episode:%d", episodeID) 100 + return cc.getOrFetch(key, 15*time.Minute, func() (json.RawMessage, error) { 101 + return cc.inner.GetEpisodeByID(episodeID) 102 + }) 103 + } 104 + 105 + func (cc *CachedClient) GetTrending(max int, lang string, categories string) (json.RawMessage, error) { 106 + key := fmt.Sprintf("trending:%d:%s:%s", max, lang, categories) 107 + return cc.getOrFetch(key, 10*time.Minute, func() (json.RawMessage, error) { 108 + return cc.inner.GetTrending(max, lang, categories) 109 + }) 110 + } 111 + 112 + func (cc *CachedClient) GetCategories() (json.RawMessage, error) { 113 + key := "categories:list" 114 + return cc.getOrFetch(key, 24*time.Hour, func() (json.RawMessage, error) { 115 + return cc.inner.GetCategories() 116 + }) 117 + }
+98
appview/podcastindex/client.go
··· 1 + package podcastindex 2 + 3 + import ( 4 + "encoding/json" 5 + "fmt" 6 + "io" 7 + "net/http" 8 + "net/url" 9 + "strconv" 10 + "time" 11 + ) 12 + 13 + const baseURL = "https://api.podcastindex.org/api/1.0" 14 + 15 + type Client struct { 16 + apiKey string 17 + apiSecret string 18 + http *http.Client 19 + } 20 + 21 + func NewClient(key, secret string) *Client { 22 + return &Client{ 23 + apiKey: key, 24 + apiSecret: secret, 25 + http: &http.Client{ 26 + Timeout: 15 * time.Second, 27 + }, 28 + } 29 + } 30 + 31 + func (c *Client) get(path string, params url.Values) (json.RawMessage, error) { 32 + u, _ := url.Parse(baseURL + path) 33 + u.RawQuery = params.Encode() 34 + 35 + req, err := http.NewRequest(http.MethodGet, u.String(), nil) 36 + if err != nil { 37 + return nil, err 38 + } 39 + for k, v := range authHeaders(c.apiKey, c.apiSecret) { 40 + req.Header[k] = v 41 + } 42 + 43 + resp, err := c.http.Do(req) 44 + if err != nil { 45 + return nil, fmt.Errorf("podcast index request failed: %w", err) 46 + } 47 + defer resp.Body.Close() 48 + 49 + body, err := io.ReadAll(resp.Body) 50 + if err != nil { 51 + return nil, err 52 + } 53 + if resp.StatusCode != http.StatusOK { 54 + return nil, fmt.Errorf("podcast index returned %d: %s", resp.StatusCode, string(body)) 55 + } 56 + 57 + return body, nil 58 + } 59 + 60 + func (c *Client) SearchByTerm(query string, max int) (json.RawMessage, error) { 61 + params := url.Values{"q": {query}, "max": {strconv.Itoa(max)}} 62 + return c.get("/search/byterm", params) 63 + } 64 + 65 + func (c *Client) SearchEpisodesByTerm(query string, max int) (json.RawMessage, error) { 66 + params := url.Values{"q": {query}, "max": {strconv.Itoa(max)}, "fulltext": {"true"}} 67 + return c.get("/search/byterm", params) 68 + } 69 + 70 + func (c *Client) GetPodcastByFeedID(feedID int) (json.RawMessage, error) { 71 + params := url.Values{"id": {strconv.Itoa(feedID)}} 72 + return c.get("/podcasts/byfeedid", params) 73 + } 74 + 75 + func (c *Client) GetEpisodesByFeedID(feedID int, max int) (json.RawMessage, error) { 76 + params := url.Values{"id": {strconv.Itoa(feedID)}, "max": {strconv.Itoa(max)}} 77 + return c.get("/episodes/byfeedid", params) 78 + } 79 + 80 + func (c *Client) GetEpisodeByID(episodeID int) (json.RawMessage, error) { 81 + params := url.Values{"id": {strconv.Itoa(episodeID)}} 82 + return c.get("/episodes/byid", params) 83 + } 84 + 85 + func (c *Client) GetTrending(max int, lang string, categories string) (json.RawMessage, error) { 86 + params := url.Values{"max": {strconv.Itoa(max)}} 87 + if lang != "" { 88 + params.Set("lang", lang) 89 + } 90 + if categories != "" { 91 + params.Set("cat", categories) 92 + } 93 + return c.get("/podcasts/trending", params) 94 + } 95 + 96 + func (c *Client) GetCategories() (json.RawMessage, error) { 97 + return c.get("/categories/list", url.Values{}) 98 + }
+15
appview/podcastindex/models.go
··· 1 + package podcastindex 2 + 3 + // These are minimal model stubs used for documentation and future typed decoding. 4 + type Podcast struct { 5 + ID int `json:"id"` 6 + Title string `json:"title"` 7 + URL string `json:"url"` 8 + } 9 + 10 + type Episode struct { 11 + ID int `json:"id"` 12 + FeedID int `json:"feedId"` 13 + Title string `json:"title"` 14 + EnclosureURL string `json:"enclosureUrl"` 15 + }
+135
appview/server.go
··· 1 + package appview 2 + 3 + import ( 4 + "context" 5 + "errors" 6 + "fmt" 7 + "log/slog" 8 + "net/http" 9 + 10 + "github.com/SparrowTek/effem-appview/appview/database" 11 + "github.com/SparrowTek/effem-appview/appview/handlers" 12 + "github.com/SparrowTek/effem-appview/appview/indexer" 13 + "github.com/SparrowTek/effem-appview/appview/podcastindex" 14 + "github.com/labstack/echo/v4" 15 + "github.com/labstack/echo/v4/middleware" 16 + "gorm.io/driver/postgres" 17 + "gorm.io/gorm" 18 + ) 19 + 20 + type Server struct { 21 + db *gorm.DB 22 + echo *echo.Echo 23 + pi *podcastindex.CachedClient 24 + indexer *indexer.Indexer 25 + config Config 26 + logger *slog.Logger 27 + lastSeq int64 28 + } 29 + 30 + func NewServer(cfg Config) (*Server, error) { 31 + if err := cfg.Validate(); err != nil { 32 + return nil, err 33 + } 34 + 35 + logger := slog.Default().With("service", "effem-appview") 36 + 37 + db, err := gorm.Open(postgres.Open(cfg.DatabaseURL), &gorm.Config{}) 38 + if err != nil { 39 + return nil, fmt.Errorf("connecting to database: %w", err) 40 + } 41 + 42 + if err := database.RunMigrations(db); err != nil { 43 + return nil, fmt.Errorf("running database migrations: %w", err) 44 + } 45 + if err := podcastindex.RunMigrations(db); err != nil { 46 + return nil, fmt.Errorf("running podcast index cache migrations: %w", err) 47 + } 48 + 49 + piClient := podcastindex.NewClient(cfg.PIKey, cfg.PISecret) 50 + cachedPI := podcastindex.NewCachedClient(piClient, db) 51 + 52 + e := echo.New() 53 + e.HideBanner = true 54 + e.Use(middleware.CORSWithConfig(middleware.CORSConfig{ 55 + AllowOrigins: []string{"*"}, 56 + AllowHeaders: []string{echo.HeaderOrigin, echo.HeaderContentType, echo.HeaderAccept, echo.HeaderAuthorization}, 57 + })) 58 + e.Use(middleware.Recover()) 59 + e.Use(middleware.RequestLoggerWithConfig(middleware.RequestLoggerConfig{ 60 + LogStatus: true, 61 + LogURI: true, 62 + LogMethod: true, 63 + LogValuesFunc: func(c echo.Context, v middleware.RequestLoggerValues) error { 64 + logger.Info("request", "method", v.Method, "uri", v.URI, "status", v.Status) 65 + return nil 66 + }, 67 + })) 68 + 69 + srv := &Server{ 70 + db: db, 71 + echo: e, 72 + pi: cachedPI, 73 + indexer: indexer.New(db, logger), 74 + config: cfg, 75 + logger: logger, 76 + } 77 + srv.registerRoutes() 78 + 79 + return srv, nil 80 + } 81 + 82 + func (srv *Server) registerRoutes() { 83 + h := handlers.New(srv.db, srv.pi, srv.logger) 84 + 85 + srv.echo.GET("/_health", func(c echo.Context) error { 86 + return c.JSON(http.StatusOK, map[string]string{"status": "ok"}) 87 + }) 88 + 89 + srv.echo.GET("/xrpc/xyz.effem.feed.getSubscriptions", h.GetSubscriptions) 90 + srv.echo.GET("/xrpc/xyz.effem.feed.getSubscribers", h.GetSubscribers) 91 + 92 + srv.echo.GET("/xrpc/xyz.effem.feed.getComments", h.GetComments) 93 + srv.echo.GET("/xrpc/xyz.effem.feed.getCommentThread", h.GetCommentThread) 94 + 95 + srv.echo.GET("/xrpc/xyz.effem.feed.getRecommendations", h.GetRecommendations) 96 + srv.echo.GET("/xrpc/xyz.effem.feed.getPopular", h.GetPopular) 97 + 98 + srv.echo.GET("/xrpc/xyz.effem.feed.getList", h.GetList) 99 + srv.echo.GET("/xrpc/xyz.effem.feed.getLists", h.GetLists) 100 + 101 + srv.echo.GET("/xrpc/xyz.effem.feed.getBookmarks", h.GetBookmarks) 102 + 103 + srv.echo.GET("/xrpc/xyz.effem.actor.getProfile", h.GetProfile) 104 + 105 + srv.echo.GET("/xrpc/xyz.effem.feed.getInbox", h.GetInbox) 106 + 107 + srv.echo.GET("/xrpc/xyz.effem.search.podcasts", h.SearchPodcasts) 108 + srv.echo.GET("/xrpc/xyz.effem.search.episodes", h.SearchEpisodes) 109 + 110 + srv.echo.GET("/xrpc/xyz.effem.podcast.getPodcast", h.GetPodcast) 111 + srv.echo.GET("/xrpc/xyz.effem.podcast.getEpisodes", h.GetEpisodes) 112 + srv.echo.GET("/xrpc/xyz.effem.podcast.getEpisode", h.GetEpisode) 113 + srv.echo.GET("/xrpc/xyz.effem.podcast.getTrending", h.GetTrending) 114 + srv.echo.GET("/xrpc/xyz.effem.podcast.getCategories", h.GetCategories) 115 + } 116 + 117 + func (srv *Server) RunAPI(ctx context.Context) error { 118 + httpd := &http.Server{ 119 + Addr: srv.config.Bind, 120 + Handler: srv.echo, 121 + } 122 + 123 + go func() { 124 + <-ctx.Done() 125 + srv.logger.Info("shutting down HTTP server") 126 + _ = httpd.Shutdown(context.Background()) 127 + }() 128 + 129 + srv.logger.Info("starting HTTP server", "bind", srv.config.Bind) 130 + err := httpd.ListenAndServe() 131 + if errors.Is(err, http.ErrServerClosed) { 132 + return nil 133 + } 134 + return err 135 + }
+14
appview/util/tid.go
··· 1 + package util 2 + 3 + import "github.com/bluesky-social/indigo/atproto/syntax" 4 + 5 + var defaultClock = syntax.NewTIDClock(1) 6 + 7 + func NewTID() string { 8 + return defaultClock.Next().String() 9 + } 10 + 11 + func IsValidTID(raw string) bool { 12 + _, err := syntax.ParseTID(raw) 13 + return err == nil 14 + }
+96
cmd/effem-appview/main.go
··· 1 + package main 2 + 3 + import ( 4 + "context" 5 + "fmt" 6 + "log/slog" 7 + "os" 8 + "os/signal" 9 + "syscall" 10 + 11 + "github.com/SparrowTek/effem-appview/appview" 12 + "github.com/urfave/cli/v2" 13 + ) 14 + 15 + func main() { 16 + app := &cli.App{ 17 + Name: "effem-appview", 18 + Usage: "Effem Podcast AppView for AT Protocol", 19 + Flags: []cli.Flag{ 20 + &cli.StringFlag{ 21 + Name: "bind", 22 + Value: ":8080", 23 + EnvVars: []string{"EFFEM_BIND"}, 24 + Usage: "HTTP listen address", 25 + }, 26 + &cli.StringFlag{ 27 + Name: "database-url", 28 + Value: "postgres://effem:effem@localhost:5432/effem?sslmode=disable", 29 + EnvVars: []string{"EFFEM_DATABASE_URL"}, 30 + Usage: "PostgreSQL connection string", 31 + }, 32 + &cli.StringFlag{ 33 + Name: "relay-host", 34 + Value: "wss://bsky.network", 35 + EnvVars: []string{"EFFEM_RELAY_HOST"}, 36 + Usage: "AT Proto relay WebSocket URL", 37 + }, 38 + &cli.StringFlag{ 39 + Name: "plc-host", 40 + Value: "https://plc.directory", 41 + EnvVars: []string{"EFFEM_PLC_HOST"}, 42 + Usage: "PLC directory URL", 43 + }, 44 + &cli.StringFlag{ 45 + Name: "podcast-index-key", 46 + EnvVars: []string{"EFFEM_PI_KEY"}, 47 + Usage: "Podcast Index API key", 48 + }, 49 + &cli.StringFlag{ 50 + Name: "podcast-index-secret", 51 + EnvVars: []string{"EFFEM_PI_SECRET"}, 52 + Usage: "Podcast Index API secret", 53 + }, 54 + &cli.IntFlag{ 55 + Name: "firehose-parallelism", 56 + Value: 5, 57 + EnvVars: []string{"EFFEM_FIREHOSE_PARALLELISM"}, 58 + Usage: "Number of parallel firehose event processors", 59 + }, 60 + }, 61 + Action: run, 62 + } 63 + 64 + if err := app.Run(os.Args); err != nil { 65 + slog.Error("fatal", "err", err) 66 + os.Exit(1) 67 + } 68 + } 69 + 70 + func run(cctx *cli.Context) error { 71 + ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM) 72 + defer cancel() 73 + 74 + cfg := appview.Config{ 75 + Bind: cctx.String("bind"), 76 + DatabaseURL: cctx.String("database-url"), 77 + RelayHost: cctx.String("relay-host"), 78 + PLCHost: cctx.String("plc-host"), 79 + PIKey: cctx.String("podcast-index-key"), 80 + PISecret: cctx.String("podcast-index-secret"), 81 + FirehoseParallel: cctx.Int("firehose-parallelism"), 82 + } 83 + 84 + srv, err := appview.NewServer(cfg) 85 + if err != nil { 86 + return fmt.Errorf("creating server: %w", err) 87 + } 88 + 89 + go func() { 90 + if err := srv.RunFirehoseConsumer(ctx); err != nil { 91 + slog.Error("firehose consumer stopped", "err", err) 92 + } 93 + }() 94 + 95 + return srv.RunAPI(ctx) 96 + }
+35
docker-compose.yml
··· 1 + version: "3.9" 2 + 3 + services: 4 + postgres: 5 + image: postgres:16 6 + container_name: effem-appview-postgres 7 + environment: 8 + POSTGRES_USER: effem 9 + POSTGRES_PASSWORD: effem 10 + POSTGRES_DB: effem 11 + ports: 12 + - "5432:5432" 13 + volumes: 14 + - effem_appview_pgdata:/var/lib/postgresql/data 15 + 16 + appview: 17 + build: 18 + context: . 19 + dockerfile: Dockerfile 20 + container_name: effem-appview 21 + depends_on: 22 + - postgres 23 + environment: 24 + EFFEM_BIND: ":8080" 25 + EFFEM_DATABASE_URL: "postgres://effem:effem@postgres:5432/effem?sslmode=disable" 26 + EFFEM_RELAY_HOST: "wss://bsky.network" 27 + EFFEM_PLC_HOST: "https://plc.directory" 28 + EFFEM_FIREHOSE_PARALLELISM: "5" 29 + EFFEM_PI_KEY: "${EFFEM_PI_KEY:-}" 30 + EFFEM_PI_SECRET: "${EFFEM_PI_SECRET:-}" 31 + ports: 32 + - "8080:8080" 33 + 34 + volumes: 35 + effem_appview_pgdata:
+107
go.mod
··· 1 + module github.com/SparrowTek/effem-appview 2 + 3 + go 1.25 4 + 5 + require ( 6 + github.com/bluesky-social/indigo v0.0.0 7 + github.com/gorilla/websocket v1.5.3 8 + github.com/labstack/echo/v4 v4.12.0 9 + github.com/urfave/cli/v2 v2.27.6 10 + gorm.io/driver/postgres v1.5.11 11 + gorm.io/gorm v1.25.12 12 + ) 13 + 14 + require ( 15 + github.com/RussellLuo/slidingwindow v0.0.0-20200528002341-535bb99d338b // indirect 16 + github.com/beorn7/perks v1.0.1 // indirect 17 + github.com/cespare/xxhash/v2 v2.2.0 // indirect 18 + github.com/cpuguy83/go-md2man/v2 v2.0.5 // indirect 19 + github.com/earthboundkid/versioninfo/v2 v2.24.1 // indirect 20 + github.com/felixge/httpsnoop v1.0.4 // indirect 21 + github.com/go-logr/logr v1.4.1 // indirect 22 + github.com/go-logr/stdr v1.2.2 // indirect 23 + github.com/gocql/gocql v1.7.0 // indirect 24 + github.com/gogo/protobuf v1.3.2 // indirect 25 + github.com/golang-jwt/jwt v3.2.2+incompatible // indirect 26 + github.com/golang/snappy v0.0.4 // indirect 27 + github.com/google/uuid v1.4.0 // indirect 28 + github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect 29 + github.com/hashicorp/go-cleanhttp v0.5.2 // indirect 30 + github.com/hashicorp/go-retryablehttp v0.7.5 // indirect 31 + github.com/hashicorp/golang-lru v1.0.2 // indirect 32 + github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect 33 + github.com/ipfs/bbloom v0.0.4 // indirect 34 + github.com/ipfs/go-block-format v0.2.0 // indirect 35 + github.com/ipfs/go-blockservice v0.5.2 // indirect 36 + github.com/ipfs/go-cid v0.4.1 // indirect 37 + github.com/ipfs/go-datastore v0.6.0 // indirect 38 + github.com/ipfs/go-ipfs-blockstore v1.3.1 // indirect 39 + github.com/ipfs/go-ipfs-ds-help v1.1.1 // indirect 40 + github.com/ipfs/go-ipfs-exchange-interface v0.2.1 // indirect 41 + github.com/ipfs/go-ipfs-util v0.0.3 // indirect 42 + github.com/ipfs/go-ipld-cbor v0.1.0 // indirect 43 + github.com/ipfs/go-ipld-format v0.6.0 // indirect 44 + github.com/ipfs/go-ipld-legacy v0.2.1 // indirect 45 + github.com/ipfs/go-libipfs v0.7.0 // indirect 46 + github.com/ipfs/go-log v1.0.5 // indirect 47 + github.com/ipfs/go-log/v2 v2.5.1 // indirect 48 + github.com/ipfs/go-merkledag v0.11.0 // indirect 49 + github.com/ipfs/go-metrics-interface v0.0.1 // indirect 50 + github.com/ipfs/go-verifcid v0.0.3 // indirect 51 + github.com/ipld/go-car v0.6.1-0.20230509095817-92d28eb23ba4 // indirect 52 + github.com/ipld/go-codec-dagpb v1.6.0 // indirect 53 + github.com/ipld/go-ipld-prime v0.21.0 // indirect 54 + github.com/jackc/pgpassfile v1.0.0 // indirect 55 + github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect 56 + github.com/jackc/pgx/v5 v5.5.5 // indirect 57 + github.com/jackc/puddle/v2 v2.2.1 // indirect 58 + github.com/jbenet/goprocess v0.1.4 // indirect 59 + github.com/jinzhu/inflection v1.0.0 // indirect 60 + github.com/jinzhu/now v1.1.5 // indirect 61 + github.com/klauspost/cpuid/v2 v2.2.7 // indirect 62 + github.com/labstack/gommon v0.4.2 // indirect 63 + github.com/mattn/go-colorable v0.1.13 // indirect 64 + github.com/mattn/go-isatty v0.0.20 // indirect 65 + github.com/mattn/go-sqlite3 v1.14.22 // indirect 66 + github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect 67 + github.com/minio/sha256-simd v1.0.1 // indirect 68 + github.com/mr-tron/base58 v1.2.0 // indirect 69 + github.com/multiformats/go-base32 v0.1.0 // indirect 70 + github.com/multiformats/go-base36 v0.2.0 // indirect 71 + github.com/multiformats/go-multibase v0.2.0 // indirect 72 + github.com/multiformats/go-multihash v0.2.3 // indirect 73 + github.com/multiformats/go-varint v0.0.7 // indirect 74 + github.com/opentracing/opentracing-go v1.2.0 // indirect 75 + github.com/polydawn/refmt v0.89.1-0.20221221234430-40501e09de1f // indirect 76 + github.com/prometheus/client_golang v1.17.0 // indirect 77 + github.com/prometheus/client_model v0.5.0 // indirect 78 + github.com/prometheus/common v0.45.0 // indirect 79 + github.com/prometheus/procfs v0.12.0 // indirect 80 + github.com/russross/blackfriday/v2 v2.1.0 // indirect 81 + github.com/spaolacci/murmur3 v1.1.0 // indirect 82 + github.com/valyala/bytebufferpool v1.0.0 // indirect 83 + github.com/valyala/fasttemplate v1.2.2 // indirect 84 + github.com/whyrusleeping/cbor-gen v0.2.1-0.20241030202151-b7a6831be65e // indirect 85 + github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect 86 + gitlab.com/yawning/secp256k1-voi v0.0.0-20230925100816-f2616030848b // indirect 87 + gitlab.com/yawning/tuplehash v0.0.0-20230713102510-df83abbf9a02 // indirect 88 + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1 // indirect 89 + go.opentelemetry.io/otel v1.21.0 // indirect 90 + go.opentelemetry.io/otel/metric v1.21.0 // indirect 91 + go.opentelemetry.io/otel/trace v1.21.0 // indirect 92 + go.uber.org/atomic v1.11.0 // indirect 93 + go.uber.org/multierr v1.11.0 // indirect 94 + go.uber.org/zap v1.26.0 // indirect 95 + golang.org/x/crypto v0.22.0 // indirect 96 + golang.org/x/net v0.24.0 // indirect 97 + golang.org/x/sync v0.7.0 // indirect 98 + golang.org/x/sys v0.22.0 // indirect 99 + golang.org/x/text v0.14.0 // indirect 100 + golang.org/x/time v0.5.0 // indirect 101 + golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect 102 + google.golang.org/protobuf v1.33.0 // indirect 103 + gopkg.in/inf.v0 v0.9.1 // indirect 104 + lukechampine.com/blake3 v1.2.1 // indirect 105 + ) 106 + 107 + replace github.com/bluesky-social/indigo => ../../bluesky/indigo
+404
go.sum
··· 1 + github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= 2 + github.com/RussellLuo/slidingwindow v0.0.0-20200528002341-535bb99d338b h1:5/++qT1/z812ZqBvqQt6ToRswSuPZ/B33m6xVHRzADU= 3 + github.com/RussellLuo/slidingwindow v0.0.0-20200528002341-535bb99d338b/go.mod h1:4+EPqMRApwwE/6yo6CxiHoSnBzjRr3jsqer7frxP8y4= 4 + github.com/alexbrainman/goissue34681 v0.0.0-20191006012335-3fc7a47baff5 h1:iW0a5ljuFxkLGPNem5Ui+KBjFJzKg4Fv2fnxe4dvzpM= 5 + github.com/alexbrainman/goissue34681 v0.0.0-20191006012335-3fc7a47baff5/go.mod h1:Y2QMoi1vgtOIfc+6DhrMOGkLoGzqSV2rKp4Sm+opsyA= 6 + github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= 7 + github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= 8 + github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= 9 + github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= 10 + github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= 11 + github.com/bitly/go-hostpool v0.0.0-20171023180738-a3a6125de932 h1:mXoPYz/Ul5HYEDvkta6I8/rnYM5gSdSV2tJ6XbZuEtY= 12 + github.com/bitly/go-hostpool v0.0.0-20171023180738-a3a6125de932/go.mod h1:NOuUCSz6Q9T7+igc/hlvDOUdtWKryOrtFyIVABv/p7k= 13 + github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 h1:DDGfHa7BWjL4YnC6+E63dPcxHo2sUxDIu8g3QgEJdRY= 14 + github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= 15 + github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= 16 + github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= 17 + github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= 18 + github.com/cpuguy83/go-md2man/v2 v2.0.5 h1:ZtcqGrnekaHpVLArFSe4HK5DoKx1T0rq2DwVB0alcyc= 19 + github.com/cpuguy83/go-md2man/v2 v2.0.5/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= 20 + github.com/cskr/pubsub v1.0.2 h1:vlOzMhl6PFn60gRlTQQsIfVwaPB/B/8MziK8FhEPt/0= 21 + github.com/cskr/pubsub v1.0.2/go.mod h1:/8MzYXk/NJAz782G8RPkFzXTZVu63VotefPnR9TIRis= 22 + github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 23 + github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 24 + github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 25 + github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= 26 + github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= 27 + github.com/earthboundkid/versioninfo/v2 v2.24.1 h1:SJTMHaoUx3GzjjnUO1QzP3ZXK6Ee/nbWyCm58eY3oUg= 28 + github.com/earthboundkid/versioninfo/v2 v2.24.1/go.mod h1:VcWEooDEuyUJnMfbdTh0uFN4cfEIg+kHMuWB2CDCLjw= 29 + github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= 30 + github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= 31 + github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= 32 + github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= 33 + github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= 34 + github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= 35 + github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= 36 + github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= 37 + github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= 38 + github.com/go-redis/redis v6.15.9+incompatible h1:K0pv1D7EQUjfyoMql+r/jZqCLizCGKFlFgcHWWmHQjg= 39 + github.com/go-redis/redis v6.15.9+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA= 40 + github.com/go-yaml/yaml v2.1.0+incompatible/go.mod h1:w2MrLa16VYP0jy6N7M5kHaCkaLENm+P+Tv+MfurjSw0= 41 + github.com/gocql/gocql v1.7.0 h1:O+7U7/1gSN7QTEAaMEsJc1Oq2QHXvCWoF3DFK9HDHus= 42 + github.com/gocql/gocql v1.7.0/go.mod h1:vnlvXyFZeLBF0Wy+RS8hrOdbn0UWsWtdg07XJnFxZ+4= 43 + github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= 44 + github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= 45 + github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY= 46 + github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= 47 + github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= 48 + github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= 49 + github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= 50 + github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= 51 + github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= 52 + github.com/google/gopacket v1.1.19 h1:ves8RnFZPGiFnTS0uPQStjwru6uO6h+nlr9j6fL7kF8= 53 + github.com/google/gopacket v1.1.19/go.mod h1:iJ8V8n6KS+z2U1A8pUwu8bW5SyEMkXJB8Yo/Vo+TKTo= 54 + github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= 55 + github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= 56 + github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 57 + github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8= 58 + github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= 59 + github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg= 60 + github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= 61 + github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed h1:5upAirOpQc1Q53c0bnx2ufif5kANL7bfZWcc6VJWJd8= 62 + github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed/go.mod h1:tMWxXQ9wFIaZeTI9F+hmhFiGpFmhOHzyShyFUhRm0H4= 63 + github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= 64 + github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= 65 + github.com/hashicorp/go-hclog v0.9.2 h1:CG6TE5H9/JXsFWJCfoIVpKFIkFe6ysEuHirp4DxCsHI= 66 + github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= 67 + github.com/hashicorp/go-retryablehttp v0.7.5 h1:bJj+Pj19UZMIweq/iie+1u5YCdGrnxCT9yvm0e+Nd5M= 68 + github.com/hashicorp/go-retryablehttp v0.7.5/go.mod h1:Jy/gPYAdjqffZ/yFGCFV2doI5wjtH1ewM9u8iYVjtX8= 69 + github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c= 70 + github.com/hashicorp/golang-lru v1.0.2/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= 71 + github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= 72 + github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= 73 + github.com/huin/goupnp v1.0.3 h1:N8No57ls+MnjlB+JPiCVSOyy/ot7MJTqlo7rn+NYSqQ= 74 + github.com/huin/goupnp v1.0.3/go.mod h1:ZxNlw5WqJj6wSsRK5+YfflQGXYfccj5VgQsMNixHM7Y= 75 + github.com/ipfs/bbloom v0.0.4 h1:Gi+8EGJ2y5qiD5FbsbpX/TMNcJw8gSqr7eyjHa4Fhvs= 76 + github.com/ipfs/bbloom v0.0.4/go.mod h1:cS9YprKXpoZ9lT0n/Mw/a6/aFV6DTjTLYHeA+gyqMG0= 77 + github.com/ipfs/go-bitswap v0.11.0 h1:j1WVvhDX1yhG32NTC9xfxnqycqYIlhzEzLXG/cU1HyQ= 78 + github.com/ipfs/go-bitswap v0.11.0/go.mod h1:05aE8H3XOU+LXpTedeAS0OZpcO1WFsj5niYQH9a1Tmk= 79 + github.com/ipfs/go-block-format v0.2.0 h1:ZqrkxBA2ICbDRbK8KJs/u0O3dlp6gmAuuXUJNiW1Ycs= 80 + github.com/ipfs/go-block-format v0.2.0/go.mod h1:+jpL11nFx5A/SPpsoBn6Bzkra/zaArfSmsknbPMYgzM= 81 + github.com/ipfs/go-blockservice v0.5.2 h1:in9Bc+QcXwd1apOVM7Un9t8tixPKdaHQFdLSUM1Xgk8= 82 + github.com/ipfs/go-blockservice v0.5.2/go.mod h1:VpMblFEqG67A/H2sHKAemeH9vlURVavlysbdUI632yk= 83 + github.com/ipfs/go-cid v0.4.1 h1:A/T3qGvxi4kpKWWcPC/PgbvDA2bjVLO7n4UeVwnbs/s= 84 + github.com/ipfs/go-cid v0.4.1/go.mod h1:uQHwDeX4c6CtyrFwdqyhpNcxVewur1M7l7fNU7LKwZk= 85 + github.com/ipfs/go-datastore v0.6.0 h1:JKyz+Gvz1QEZw0LsX1IBn+JFCJQH4SJVFtM4uWU0Myk= 86 + github.com/ipfs/go-datastore v0.6.0/go.mod h1:rt5M3nNbSO/8q1t4LNkLyUwRs8HupMeN/8O4Vn9YAT8= 87 + github.com/ipfs/go-detect-race v0.0.1 h1:qX/xay2W3E4Q1U7d9lNs1sU9nvguX0a7319XbyQ6cOk= 88 + github.com/ipfs/go-detect-race v0.0.1/go.mod h1:8BNT7shDZPo99Q74BpGMK+4D8Mn4j46UU0LZ723meps= 89 + github.com/ipfs/go-ds-flatfs v0.5.1 h1:ZCIO/kQOS/PSh3vcF1H6a8fkRGS7pOfwfPdx4n/KJH4= 90 + github.com/ipfs/go-ds-flatfs v0.5.1/go.mod h1:RWTV7oZD/yZYBKdbVIFXTX2fdY2Tbvl94NsWqmoyAX4= 91 + github.com/ipfs/go-ipfs-blockstore v1.3.1 h1:cEI9ci7V0sRNivqaOr0elDsamxXFxJMMMy7PTTDQNsQ= 92 + github.com/ipfs/go-ipfs-blockstore v1.3.1/go.mod h1:KgtZyc9fq+P2xJUiCAzbRdhhqJHvsw8u2Dlqy2MyRTE= 93 + github.com/ipfs/go-ipfs-blocksutil v0.0.1 h1:Eh/H4pc1hsvhzsQoMEP3Bke/aW5P5rVM1IWFJMcGIPQ= 94 + github.com/ipfs/go-ipfs-blocksutil v0.0.1/go.mod h1:Yq4M86uIOmxmGPUHv/uI7uKqZNtLb449gwKqXjIsnRk= 95 + github.com/ipfs/go-ipfs-delay v0.0.1 h1:r/UXYyRcddO6thwOnhiznIAiSvxMECGgtv35Xs1IeRQ= 96 + github.com/ipfs/go-ipfs-delay v0.0.1/go.mod h1:8SP1YXK1M1kXuc4KJZINY3TQQ03J2rwBG9QfXmbRPrw= 97 + github.com/ipfs/go-ipfs-ds-help v1.1.1 h1:B5UJOH52IbcfS56+Ul+sv8jnIV10lbjLF5eOO0C66Nw= 98 + github.com/ipfs/go-ipfs-ds-help v1.1.1/go.mod h1:75vrVCkSdSFidJscs8n4W+77AtTpCIAdDGAwjitJMIo= 99 + github.com/ipfs/go-ipfs-exchange-interface v0.2.1 h1:jMzo2VhLKSHbVe+mHNzYgs95n0+t0Q69GQ5WhRDZV/s= 100 + github.com/ipfs/go-ipfs-exchange-interface v0.2.1/go.mod h1:MUsYn6rKbG6CTtsDp+lKJPmVt3ZrCViNyH3rfPGsZ2E= 101 + github.com/ipfs/go-ipfs-exchange-offline v0.3.0 h1:c/Dg8GDPzixGd0MC8Jh6mjOwU57uYokgWRFidfvEkuA= 102 + github.com/ipfs/go-ipfs-exchange-offline v0.3.0/go.mod h1:MOdJ9DChbb5u37M1IcbrRB02e++Z7521fMxqCNRrz9s= 103 + github.com/ipfs/go-ipfs-pq v0.0.3 h1:YpoHVJB+jzK15mr/xsWC574tyDLkezVrDNeaalQBsTE= 104 + github.com/ipfs/go-ipfs-pq v0.0.3/go.mod h1:btNw5hsHBpRcSSgZtiNm/SLj5gYIZ18AKtv3kERkRb4= 105 + github.com/ipfs/go-ipfs-routing v0.3.0 h1:9W/W3N+g+y4ZDeffSgqhgo7BsBSJwPMcyssET9OWevc= 106 + github.com/ipfs/go-ipfs-routing v0.3.0/go.mod h1:dKqtTFIql7e1zYsEuWLyuOU+E0WJWW8JjbTPLParDWo= 107 + github.com/ipfs/go-ipfs-util v0.0.3 h1:2RFdGez6bu2ZlZdI+rWfIdbQb1KudQp3VGwPtdNCmE0= 108 + github.com/ipfs/go-ipfs-util v0.0.3/go.mod h1:LHzG1a0Ig4G+iZ26UUOMjHd+lfM84LZCrn17xAKWBvs= 109 + github.com/ipfs/go-ipld-cbor v0.1.0 h1:dx0nS0kILVivGhfWuB6dUpMa/LAwElHPw1yOGYopoYs= 110 + github.com/ipfs/go-ipld-cbor v0.1.0/go.mod h1:U2aYlmVrJr2wsUBU67K4KgepApSZddGRDWBYR0H4sCk= 111 + github.com/ipfs/go-ipld-format v0.6.0 h1:VEJlA2kQ3LqFSIm5Vu6eIlSxD/Ze90xtc4Meten1F5U= 112 + github.com/ipfs/go-ipld-format v0.6.0/go.mod h1:g4QVMTn3marU3qXchwjpKPKgJv+zF+OlaKMyhJ4LHPg= 113 + github.com/ipfs/go-ipld-legacy v0.2.1 h1:mDFtrBpmU7b//LzLSypVrXsD8QxkEWxu5qVxN99/+tk= 114 + github.com/ipfs/go-ipld-legacy v0.2.1/go.mod h1:782MOUghNzMO2DER0FlBR94mllfdCJCkTtDtPM51otM= 115 + github.com/ipfs/go-libipfs v0.7.0 h1:Mi54WJTODaOL2/ZSm5loi3SwI3jI2OuFWUrQIkJ5cpM= 116 + github.com/ipfs/go-libipfs v0.7.0/go.mod h1:KsIf/03CqhICzyRGyGo68tooiBE2iFbI/rXW7FhAYr0= 117 + github.com/ipfs/go-log v1.0.5 h1:2dOuUCB1Z7uoczMWgAyDck5JLb72zHzrMnGnCNNbvY8= 118 + github.com/ipfs/go-log v1.0.5/go.mod h1:j0b8ZoR+7+R99LD9jZ6+AJsrzkPbSXbZfGakb5JPtIo= 119 + github.com/ipfs/go-log/v2 v2.1.3/go.mod h1:/8d0SH3Su5Ooc31QlL1WysJhvyOTDCjcCZ9Axpmri6g= 120 + github.com/ipfs/go-log/v2 v2.5.1 h1:1XdUzF7048prq4aBjDQQ4SL5RxftpRGdXhNRwKSAlcY= 121 + github.com/ipfs/go-log/v2 v2.5.1/go.mod h1:prSpmC1Gpllc9UYWxDiZDreBYw7zp4Iqp1kOLU9U5UI= 122 + github.com/ipfs/go-merkledag v0.11.0 h1:DgzwK5hprESOzS4O1t/wi6JDpyVQdvm9Bs59N/jqfBY= 123 + github.com/ipfs/go-merkledag v0.11.0/go.mod h1:Q4f/1ezvBiJV0YCIXvt51W/9/kqJGH4I1LsA7+djsM4= 124 + github.com/ipfs/go-metrics-interface v0.0.1 h1:j+cpbjYvu4R8zbleSs36gvB7jR+wsL2fGD6n0jO4kdg= 125 + github.com/ipfs/go-metrics-interface v0.0.1/go.mod h1:6s6euYU4zowdslK0GKHmqaIZ3j/b/tL7HTWtJ4VPgWY= 126 + github.com/ipfs/go-peertaskqueue v0.8.1 h1:YhxAs1+wxb5jk7RvS0LHdyiILpNmRIRnZVztekOF0pg= 127 + github.com/ipfs/go-peertaskqueue v0.8.1/go.mod h1:Oxxd3eaK279FxeydSPPVGHzbwVeHjatZ2GA8XD+KbPU= 128 + github.com/ipfs/go-verifcid v0.0.3 h1:gmRKccqhWDocCRkC+a59g5QW7uJw5bpX9HWBevXa0zs= 129 + github.com/ipfs/go-verifcid v0.0.3/go.mod h1:gcCtGniVzelKrbk9ooUSX/pM3xlH73fZZJDzQJRvOUw= 130 + github.com/ipld/go-car v0.6.1-0.20230509095817-92d28eb23ba4 h1:oFo19cBmcP0Cmg3XXbrr0V/c+xU9U1huEZp8+OgBzdI= 131 + github.com/ipld/go-car v0.6.1-0.20230509095817-92d28eb23ba4/go.mod h1:6nkFF8OmR5wLKBzRKi7/YFJpyYR7+oEn1DX+mMWnlLA= 132 + github.com/ipld/go-car/v2 v2.13.1 h1:KnlrKvEPEzr5IZHKTXLAEub+tPrzeAFQVRlSQvuxBO4= 133 + github.com/ipld/go-car/v2 v2.13.1/go.mod h1:QkdjjFNGit2GIkpQ953KBwowuoukoM75nP/JI1iDJdo= 134 + github.com/ipld/go-codec-dagpb v1.6.0 h1:9nYazfyu9B1p3NAgfVdpRco3Fs2nFC72DqVsMj6rOcc= 135 + github.com/ipld/go-codec-dagpb v1.6.0/go.mod h1:ANzFhfP2uMJxRBr8CE+WQWs5UsNa0pYtmKZ+agnUw9s= 136 + github.com/ipld/go-ipld-prime v0.21.0 h1:n4JmcpOlPDIxBcY037SVfpd1G+Sj1nKZah0m6QH9C2E= 137 + github.com/ipld/go-ipld-prime v0.21.0/go.mod h1:3RLqy//ERg/y5oShXXdx5YIp50cFGOanyMctpPjsvxQ= 138 + github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM= 139 + github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg= 140 + github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a h1:bbPeKD0xmW/Y25WS6cokEszi5g+S0QxI/d45PkRi7Nk= 141 + github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM= 142 + github.com/jackc/pgx/v5 v5.5.5 h1:amBjrZVmksIdNjxGW/IiIMzxMKZFelXbUoPNb+8sjQw= 143 + github.com/jackc/pgx/v5 v5.5.5/go.mod h1:ez9gk+OAat140fv9ErkZDYFWmXLfV+++K0uAOiwgm1A= 144 + github.com/jackc/puddle/v2 v2.2.1 h1:RhxXJtFG022u4ibrCSMSiu5aOq1i77R3OHKNJj77OAk= 145 + github.com/jackc/puddle/v2 v2.2.1/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4= 146 + github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7BdWus= 147 + github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= 148 + github.com/jbenet/go-cienv v0.1.0/go.mod h1:TqNnHUmJgXau0nCzC7kXWeotg3J9W34CUv5Djy1+FlA= 149 + github.com/jbenet/goprocess v0.1.4 h1:DRGOFReOMqqDNXwW70QkacFW0YN9QnwLV0Vqk+3oU0o= 150 + github.com/jbenet/goprocess v0.1.4/go.mod h1:5yspPrukOVuOLORacaBi858NqyClJPQxYZlqdZVfqY4= 151 + github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E= 152 + github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc= 153 + github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ= 154 + github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8= 155 + github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= 156 + github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= 157 + github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= 158 + github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 159 + github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= 160 + github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= 161 + github.com/koron/go-ssdp v0.0.3 h1:JivLMY45N76b4p/vsWGOKewBQu6uf39y8l+AQ7sDKx8= 162 + github.com/koron/go-ssdp v0.0.3/go.mod h1:b2MxI6yh02pKrsyNoQUsk4+YNikaGhe4894J+Q5lDvA= 163 + github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= 164 + github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= 165 + github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= 166 + github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 167 + github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 168 + github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= 169 + github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= 170 + github.com/labstack/echo/v4 v4.12.0 h1:IKpw49IMryVB2p1a4dzwlhP1O2Tf2E0Ir/450lH+kI0= 171 + github.com/labstack/echo/v4 v4.12.0/go.mod h1:UP9Cr2DJXbOK3Kr9ONYzNowSh7HP0aG0ShAyycHSJvM= 172 + github.com/labstack/gommon v0.4.2 h1:F8qTUNXgG1+6WQmqoUWnz8WiEU60mXVVw0P4ht1WRA0= 173 + github.com/labstack/gommon v0.4.2/go.mod h1:QlUFxVM+SNXhDL/Z7YhocGIBYOiwB0mXm1+1bAPHPyU= 174 + github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= 175 + github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= 176 + github.com/libp2p/go-cidranger v1.1.0 h1:ewPN8EZ0dd1LSnrtuwd4709PXVcITVeuwbag38yPW7c= 177 + github.com/libp2p/go-cidranger v1.1.0/go.mod h1:KWZTfSr+r9qEo9OkI9/SIEeAtw+NNoU0dXIXt15Okic= 178 + github.com/libp2p/go-libp2p v0.25.1 h1:YK+YDCHpYyTvitKWVxa5PfElgIpOONU01X5UcLEwJGA= 179 + github.com/libp2p/go-libp2p v0.25.1/go.mod h1:xnK9/1d9+jeQCVvi/f1g12KqtVi/jP/SijtKV1hML3g= 180 + github.com/libp2p/go-libp2p-asn-util v0.2.0 h1:rg3+Os8jbnO5DxkC7K/Utdi+DkY3q/d1/1q+8WeNAsw= 181 + github.com/libp2p/go-libp2p-asn-util v0.2.0/go.mod h1:WoaWxbHKBymSN41hWSq/lGKJEca7TNm58+gGJi2WsLI= 182 + github.com/libp2p/go-libp2p-record v0.2.0 h1:oiNUOCWno2BFuxt3my4i1frNrt7PerzB3queqa1NkQ0= 183 + github.com/libp2p/go-libp2p-record v0.2.0/go.mod h1:I+3zMkvvg5m2OcSdoL0KPljyJyvNDFGKX7QdlpYUcwk= 184 + github.com/libp2p/go-libp2p-testing v0.12.0 h1:EPvBb4kKMWO29qP4mZGyhVzUyR25dvfUIK5WDu6iPUA= 185 + github.com/libp2p/go-libp2p-testing v0.12.0/go.mod h1:KcGDRXyN7sQCllucn1cOOS+Dmm7ujhfEyXQL5lvkcPg= 186 + github.com/libp2p/go-msgio v0.3.0 h1:mf3Z8B1xcFN314sWX+2vOTShIE0Mmn2TXn3YCUQGNj0= 187 + github.com/libp2p/go-msgio v0.3.0/go.mod h1:nyRM819GmVaF9LX3l03RMh10QdOroF++NBbxAb0mmDM= 188 + github.com/libp2p/go-nat v0.1.0 h1:MfVsH6DLcpa04Xr+p8hmVRG4juse0s3J8HyNWYHffXg= 189 + github.com/libp2p/go-nat v0.1.0/go.mod h1:X7teVkwRHNInVNWQiO/tAiAVRwSr5zoRz4YSTC3uRBM= 190 + github.com/libp2p/go-netroute v0.2.1 h1:V8kVrpD8GK0Riv15/7VN6RbUQ3URNZVosw7H2v9tksU= 191 + github.com/libp2p/go-netroute v0.2.1/go.mod h1:hraioZr0fhBjG0ZRXJJ6Zj2IVEVNx6tDTFQfSmcq7mQ= 192 + github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= 193 + github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= 194 + github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= 195 + github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= 196 + github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= 197 + github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= 198 + github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU= 199 + github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= 200 + github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 h1:jWpvCLoY8Z/e3VKvlsiIGKtc+UG6U5vzxaoagmhXfyg= 201 + github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0/go.mod h1:QUyp042oQthUoa9bqDv0ER0wrtXnBruoNd7aNjkbP+k= 202 + github.com/miekg/dns v1.1.50 h1:DQUfb9uc6smULcREF09Uc+/Gd46YWqJd5DbpPE9xkcA= 203 + github.com/miekg/dns v1.1.50/go.mod h1:e3IlAVfNqAllflbibAZEWOXOQ+Ynzk/dDozDxY7XnME= 204 + github.com/minio/sha256-simd v1.0.1 h1:6kaan5IFmwTNynnKKpDHe6FWHohJOHhCPchzK49dzMM= 205 + github.com/minio/sha256-simd v1.0.1/go.mod h1:Pz6AKMiUdngCLpeTL/RJY1M9rUuPMYujV5xJjtbRSN8= 206 + github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o= 207 + github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= 208 + github.com/multiformats/go-base32 v0.1.0 h1:pVx9xoSPqEIQG8o+UbAe7DNi51oej1NtK+aGkbLYxPE= 209 + github.com/multiformats/go-base32 v0.1.0/go.mod h1:Kj3tFY6zNr+ABYMqeUNeGvkIC/UYgtWibDcT0rExnbI= 210 + github.com/multiformats/go-base36 v0.2.0 h1:lFsAbNOGeKtuKozrtBsAkSVhv1p9D0/qedU9rQyccr0= 211 + github.com/multiformats/go-base36 v0.2.0/go.mod h1:qvnKE++v+2MWCfePClUEjE78Z7P2a1UV0xHgWc0hkp4= 212 + github.com/multiformats/go-multiaddr v0.8.0 h1:aqjksEcqK+iD/Foe1RRFsGZh8+XFiGo7FgUCZlpv3LU= 213 + github.com/multiformats/go-multiaddr v0.8.0/go.mod h1:Fs50eBDWvZu+l3/9S6xAE7ZYj6yhxlvaVZjakWN7xRs= 214 + github.com/multiformats/go-multiaddr-dns v0.3.1 h1:QgQgR+LQVt3NPTjbrLLpsaT2ufAA2y0Mkk+QRVJbW3A= 215 + github.com/multiformats/go-multiaddr-dns v0.3.1/go.mod h1:G/245BRQ6FJGmryJCrOuTdB37AMA5AMOVuO6NY3JwTk= 216 + github.com/multiformats/go-multiaddr-fmt v0.1.0 h1:WLEFClPycPkp4fnIzoFoV9FVd49/eQsuaL3/CWe167E= 217 + github.com/multiformats/go-multiaddr-fmt v0.1.0/go.mod h1:hGtDIW4PU4BqJ50gW2quDuPVjyWNZxToGUh/HwTZYJo= 218 + github.com/multiformats/go-multibase v0.2.0 h1:isdYCVLvksgWlMW9OZRYJEa9pZETFivncJHmHnnd87g= 219 + github.com/multiformats/go-multibase v0.2.0/go.mod h1:bFBZX4lKCA/2lyOFSAoKH5SS6oPyjtnzK/XTFDPkNuk= 220 + github.com/multiformats/go-multicodec v0.9.0 h1:pb/dlPnzee/Sxv/j4PmkDRxCOi3hXTz3IbPKOXWJkmg= 221 + github.com/multiformats/go-multicodec v0.9.0/go.mod h1:L3QTQvMIaVBkXOXXtVmYE+LI16i14xuaojr/H7Ai54k= 222 + github.com/multiformats/go-multihash v0.2.3 h1:7Lyc8XfX/IY2jWb/gI7JP+o7JEq9hOa7BFvVU9RSh+U= 223 + github.com/multiformats/go-multihash v0.2.3/go.mod h1:dXgKXCXjBzdscBLk9JkjINiEsCKRVch90MdaGiKsvSM= 224 + github.com/multiformats/go-multistream v0.4.1 h1:rFy0Iiyn3YT0asivDUIR05leAdwZq3de4741sbiSdfo= 225 + github.com/multiformats/go-multistream v0.4.1/go.mod h1:Mz5eykRVAjJWckE2U78c6xqdtyNUEhKSM0Lwar2p77Q= 226 + github.com/multiformats/go-varint v0.0.7 h1:sWSGR+f/eu5ABZA2ZpYKBILXTTs9JWpdEM/nEGOHFS8= 227 + github.com/multiformats/go-varint v0.0.7/go.mod h1:r8PUYw/fD/SjBCiKOoDlGF6QawOELpZAu9eioSos/OU= 228 + github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= 229 + github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= 230 + github.com/petar/GoLLRB v0.0.0-20210522233825-ae3b015fd3e9 h1:1/WtZae0yGtPq+TI6+Tv1WTxkukpXeMlviSxvL7SRgk= 231 + github.com/petar/GoLLRB v0.0.0-20210522233825-ae3b015fd3e9/go.mod h1:x3N5drFsm2uilKKuuYo6LdyD8vZAW55sH/9w+pbo1sw= 232 + github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 233 + github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 234 + github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 235 + github.com/polydawn/refmt v0.89.1-0.20221221234430-40501e09de1f h1:VXTQfuJj9vKR4TCkEuWIckKvdHFeJH/huIFJ9/cXOB0= 236 + github.com/polydawn/refmt v0.89.1-0.20221221234430-40501e09de1f/go.mod h1:/zvteZs/GwLtCgZ4BL6CBsk9IKIlexP43ObX9AxTqTw= 237 + github.com/prometheus/client_golang v1.17.0 h1:rl2sfwZMtSthVU752MqfjQozy7blglC+1SOtjMAMh+Q= 238 + github.com/prometheus/client_golang v1.17.0/go.mod h1:VeL+gMmOAxkS2IqfCq0ZmHSL+LjWfWDUmp1mBz9JgUY= 239 + github.com/prometheus/client_model v0.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw= 240 + github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI= 241 + github.com/prometheus/common v0.45.0 h1:2BGz0eBc2hdMDLnO/8n0jeB3oPrt2D08CekT0lneoxM= 242 + github.com/prometheus/common v0.45.0/go.mod h1:YJmSTw9BoKxJplESWWxlbyttQR4uaEcGyv9MZjVOJsY= 243 + github.com/prometheus/procfs v0.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo= 244 + github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo= 245 + github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= 246 + github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= 247 + github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= 248 + github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= 249 + github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= 250 + github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= 251 + github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= 252 + github.com/smartystreets/assertions v1.2.0 h1:42S6lae5dvLc7BrLu/0ugRtcFVjoJNMC/N3yZFZkDFs= 253 + github.com/smartystreets/assertions v1.2.0/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo= 254 + github.com/smartystreets/goconvey v1.7.2 h1:9RBaZCeXEQ3UselpuwUQHltGVXvdwm6cv1hgR6gDIPg= 255 + github.com/smartystreets/goconvey v1.7.2/go.mod h1:Vw0tHAZW6lzCRk3xgdin6fKYcG+G3Pg9vgXWeJpQFMM= 256 + github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= 257 + github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= 258 + github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 259 + github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 260 + github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 261 + github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= 262 + github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 263 + github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= 264 + github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= 265 + github.com/urfave/cli v1.22.10/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= 266 + github.com/urfave/cli/v2 v2.27.6 h1:VdRdS98FNhKZ8/Az8B7MTyGQmpIr36O1EHybx/LaZ4g= 267 + github.com/urfave/cli/v2 v2.27.6/go.mod h1:3Sevf16NykTbInEnD0yKkjDAeZDS0A6bzhBH5hrMvTQ= 268 + github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= 269 + github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= 270 + github.com/valyala/fasttemplate v1.2.2 h1:lxLXG0uE3Qnshl9QyaK6XJxMXlQZELvChBOCmQD0Loo= 271 + github.com/valyala/fasttemplate v1.2.2/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= 272 + github.com/warpfork/go-testmark v0.12.1 h1:rMgCpJfwy1sJ50x0M0NgyphxYYPMOODIJHhsXyEHU0s= 273 + github.com/warpfork/go-testmark v0.12.1/go.mod h1:kHwy7wfvGSPh1rQJYKayD4AbtNaeyZdcGi9tNJTaa5Y= 274 + github.com/warpfork/go-wish v0.0.0-20220906213052-39a1cc7a02d0 h1:GDDkbFiaK8jsSDJfjId/PEGEShv6ugrt4kYsC5UIDaQ= 275 + github.com/warpfork/go-wish v0.0.0-20220906213052-39a1cc7a02d0/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw= 276 + github.com/whyrusleeping/cbor v0.0.0-20171005072247-63513f603b11 h1:5HZfQkwe0mIfyDmc1Em5GqlNRzcdtlv4HTNmdpt7XH0= 277 + github.com/whyrusleeping/cbor v0.0.0-20171005072247-63513f603b11/go.mod h1:Wlo/SzPmxVp6vXpGt/zaXhHH0fn4IxgqZc82aKg6bpQ= 278 + github.com/whyrusleeping/cbor-gen v0.2.1-0.20241030202151-b7a6831be65e h1:28X54ciEwwUxyHn9yrZfl5ojgF4CBNLWX7LR0rvBkf4= 279 + github.com/whyrusleeping/cbor-gen v0.2.1-0.20241030202151-b7a6831be65e/go.mod h1:pM99HXyEbSQHcosHc0iW7YFmwnscr+t9Te4ibko05so= 280 + github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4= 281 + github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM= 282 + github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 283 + github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 284 + github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= 285 + gitlab.com/yawning/secp256k1-voi v0.0.0-20230925100816-f2616030848b h1:CzigHMRySiX3drau9C6Q5CAbNIApmLdat5jPMqChvDA= 286 + gitlab.com/yawning/secp256k1-voi v0.0.0-20230925100816-f2616030848b/go.mod h1:/y/V339mxv2sZmYYR64O07VuCpdNZqCTwO8ZcouTMI8= 287 + gitlab.com/yawning/tuplehash v0.0.0-20230713102510-df83abbf9a02 h1:qwDnMxjkyLmAFgcfgTnfJrmYKWhHnci3GjDqcZp1M3Q= 288 + gitlab.com/yawning/tuplehash v0.0.0-20230713102510-df83abbf9a02/go.mod h1:JTnUj0mpYiAsuZLmKjTx/ex3AtMowcCgnE7YNyCEP0I= 289 + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1 h1:aFJWCqJMNjENlcleuuOkGAPH82y0yULBScfXcIEdS24= 290 + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1/go.mod h1:sEGXWArGqc3tVa+ekntsN65DmVbVeW+7lTKTjZF3/Fo= 291 + go.opentelemetry.io/otel v1.21.0 h1:hzLeKBZEL7Okw2mGzZ0cc4k/A7Fta0uoPgaJCr8fsFc= 292 + go.opentelemetry.io/otel v1.21.0/go.mod h1:QZzNPQPm1zLX4gZK4cMi+71eaorMSGT3A4znnUvNNEo= 293 + go.opentelemetry.io/otel/metric v1.21.0 h1:tlYWfeo+Bocx5kLEloTjbcDwBuELRrIFxwdQ36PlJu4= 294 + go.opentelemetry.io/otel/metric v1.21.0/go.mod h1:o1p3CA8nNHW8j5yuQLdc1eeqEaPfzug24uvsyIEJRWM= 295 + go.opentelemetry.io/otel/trace v1.21.0 h1:WD9i5gzvoUPuXIXH24ZNBudiarZDKuekPqi/E8fpfLc= 296 + go.opentelemetry.io/otel/trace v1.21.0/go.mod h1:LGbsEB0f9LGjN+OZaQQ26sohbOmiMR+BaslueVtS/qQ= 297 + go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= 298 + go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= 299 + go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= 300 + go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= 301 + go.uber.org/goleak v1.1.11-0.20210813005559-691160354723/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= 302 + go.uber.org/goleak v1.2.0 h1:xqgm/S+aQvhWFTtR0XK3Jvg7z8kGV8P4X14IzwN3Eqk= 303 + go.uber.org/goleak v1.2.0/go.mod h1:XJYK+MuIchqpmGmUSAzotztawfKvYLUIgg7guXrwVUo= 304 + go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= 305 + go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= 306 + go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= 307 + go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= 308 + go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= 309 + go.uber.org/zap v1.16.0/go.mod h1:MA8QOfq0BHJwdXa996Y4dYkAqRKB8/1K1QMMZVaNZjQ= 310 + go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI= 311 + go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo= 312 + go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so= 313 + golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 314 + golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 315 + golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 316 + golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 317 + golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= 318 + golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= 319 + golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa h1:FRnLl4eNAQl8hwxVVC17teOw8kdjVDVAiFMtgUdTSRQ= 320 + golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa/go.mod h1:zk2irFbV9DP96SEBUUAy67IdHUaZuSnrz1n472HUCLE= 321 + golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 322 + golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= 323 + golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 324 + golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 325 + golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 326 + golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0= 327 + golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= 328 + golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 329 + golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 330 + golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 331 + golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 332 + golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 333 + golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= 334 + golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= 335 + golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= 336 + golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 337 + golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 338 + golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 339 + golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 340 + golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= 341 + golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= 342 + golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 343 + golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 344 + golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 345 + golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 346 + golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 347 + golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 348 + golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 349 + golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 350 + golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 351 + golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 352 + golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= 353 + golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= 354 + golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= 355 + golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 356 + golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 357 + golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= 358 + golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= 359 + golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= 360 + golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= 361 + golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 362 + golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 363 + golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 364 + golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 365 + golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 366 + golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 367 + golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 368 + golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 369 + golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 370 + golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= 371 + golang.org/x/tools v0.15.0 h1:zdAyfUGbYmuVokhzVmghFl2ZJh5QhcfebBgmVPFYA+8= 372 + golang.org/x/tools v0.15.0/go.mod h1:hpksKq4dtpQWS1uQ61JkdqWM3LscIS6Slf+VVkm+wQk= 373 + golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 374 + golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 375 + golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 376 + golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 377 + golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 h1:+cNy6SZtPcJQH3LJVLOSmiC7MMxXNOb3PU/VUEz+EhU= 378 + golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= 379 + google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= 380 + google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= 381 + gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 382 + gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 383 + gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= 384 + gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= 385 + gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= 386 + gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= 387 + gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= 388 + gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 389 + gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 390 + gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= 391 + gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= 392 + gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 393 + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 394 + gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= 395 + gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 396 + gorm.io/driver/postgres v1.5.11 h1:ubBVAfbKEUld/twyKZ0IYn9rSQh448EdelLYk9Mv314= 397 + gorm.io/driver/postgres v1.5.11/go.mod h1:DX3GReXH+3FPWGrrgffdvCk3DQ1dwDPdmbenSkweRGI= 398 + gorm.io/driver/sqlite v1.5.5 h1:7MDMtUZhV065SilG62E0MquljeArQZNfJnjd9i9gx3E= 399 + gorm.io/driver/sqlite v1.5.5/go.mod h1:6NgQ7sQWAIFsPrJJl1lSNSu2TABh0ZZ/zm5fosATavE= 400 + gorm.io/gorm v1.25.12 h1:I0u8i2hWQItBq1WfE0o2+WuL9+8L21K9e2HHSTE/0f8= 401 + gorm.io/gorm v1.25.12/go.mod h1:xh7N7RHfYlNc5EmcI/El95gXusucDrQnHXe0+CgWcLQ= 402 + honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= 403 + lukechampine.com/blake3 v1.2.1 h1:YuqqRuaqsGV71BV/nm9xlI0MKUv4QC54jQnBChWbGnI= 404 + lukechampine.com/blake3 v1.2.1/go.mod h1:0OFRp7fBtAylGVCO40o87sbupkyIGgbpv1+M1k1LM6k=
+37
lexicons/xyz/effem/actor/profile.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "xyz.effem.actor.profile", 4 + "defs": { 5 + "main": { 6 + "type": "record", 7 + "description": "Effem-specific profile data. Supplements the user's AT Proto identity.", 8 + "key": "literal:self", 9 + "record": { 10 + "type": "object", 11 + "properties": { 12 + "displayName": { 13 + "type": "string", 14 + "maxLength": 640, 15 + "maxGraphemes": 64 16 + }, 17 + "description": { 18 + "type": "string", 19 + "maxLength": 2560, 20 + "maxGraphemes": 256 21 + }, 22 + "favoriteGenres": { 23 + "type": "array", 24 + "maxLength": 10, 25 + "items": { 26 + "type": "string", 27 + "minLength": 1, 28 + "minGraphemes": 1, 29 + "maxLength": 320, 30 + "maxGraphemes": 32 31 + } 32 + } 33 + } 34 + } 35 + } 36 + } 37 + }
+30
lexicons/xyz/effem/feed/bookmark.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "xyz.effem.feed.bookmark", 4 + "defs": { 5 + "main": { 6 + "type": "record", 7 + "description": "A public bookmark on an episode.", 8 + "key": "tid", 9 + "record": { 10 + "type": "object", 11 + "required": ["episode", "createdAt"], 12 + "properties": { 13 + "episode": { 14 + "type": "ref", 15 + "ref": "xyz.effem.feed.defs#episodeRef" 16 + }, 17 + "timestamp": { 18 + "type": "integer", 19 + "minimum": 0, 20 + "description": "Episode timestamp in seconds." 21 + }, 22 + "createdAt": { 23 + "type": "string", 24 + "format": "datetime" 25 + } 26 + } 27 + } 28 + } 29 + } 30 + }
+68
lexicons/xyz/effem/feed/comment.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "xyz.effem.feed.comment", 4 + "defs": { 5 + "main": { 6 + "type": "record", 7 + "description": "A comment on a podcast episode.", 8 + "key": "tid", 9 + "record": { 10 + "type": "object", 11 + "required": ["episode", "text", "createdAt"], 12 + "properties": { 13 + "episode": { 14 + "type": "ref", 15 + "ref": "xyz.effem.feed.defs#episodeRef" 16 + }, 17 + "text": { 18 + "type": "string", 19 + "minLength": 1, 20 + "minGraphemes": 1, 21 + "maxLength": 3000, 22 + "maxGraphemes": 300, 23 + "description": "The comment text." 24 + }, 25 + "reply": { 26 + "type": "ref", 27 + "ref": "#replyRef", 28 + "description": "If this comment is a reply to another comment." 29 + }, 30 + "timestamp": { 31 + "type": "integer", 32 + "minimum": 0, 33 + "description": "Episode timestamp in seconds this comment refers to (optional)." 34 + }, 35 + "facets": { 36 + "type": "array", 37 + "items": { 38 + "type": "ref", 39 + "ref": "app.bsky.richtext.facet" 40 + }, 41 + "description": "Rich text facets (mentions, links, hashtags). Reuses Bluesky's facet schema." 42 + }, 43 + "createdAt": { 44 + "type": "string", 45 + "format": "datetime" 46 + } 47 + } 48 + } 49 + }, 50 + "replyRef": { 51 + "type": "object", 52 + "description": "Reference to a parent comment.", 53 + "required": ["root", "parent"], 54 + "properties": { 55 + "root": { 56 + "type": "ref", 57 + "ref": "com.atproto.repo.strongRef", 58 + "description": "AT URI + CID of the root comment in the thread." 59 + }, 60 + "parent": { 61 + "type": "ref", 62 + "ref": "com.atproto.repo.strongRef", 63 + "description": "AT URI + CID of the direct parent comment." 64 + } 65 + } 66 + } 67 + } 68 + }
+52
lexicons/xyz/effem/feed/defs.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "xyz.effem.feed.defs", 4 + "defs": { 5 + "podcastRef": { 6 + "type": "object", 7 + "description": "Canonical reference to a podcast using Podcast Index identifiers.", 8 + "required": ["feedId"], 9 + "properties": { 10 + "feedId": { 11 + "type": "integer", 12 + "minimum": 1, 13 + "description": "Podcast Index feed ID (primary key)." 14 + }, 15 + "feedUrl": { 16 + "type": "string", 17 + "format": "uri", 18 + "description": "RSS feed URL (fallback identifier)." 19 + }, 20 + "podcastGuid": { 21 + "type": "string", 22 + "description": "Podcasting 2.0 podcast:guid value, if available." 23 + } 24 + } 25 + }, 26 + "episodeRef": { 27 + "type": "object", 28 + "description": "Canonical reference to a podcast episode.", 29 + "required": ["feedId", "episodeId"], 30 + "properties": { 31 + "feedId": { 32 + "type": "integer", 33 + "minimum": 1, 34 + "description": "Podcast Index feed ID." 35 + }, 36 + "episodeId": { 37 + "type": "integer", 38 + "minimum": 1, 39 + "description": "Podcast Index episode ID (primary key)." 40 + }, 41 + "episodeGuid": { 42 + "type": "string", 43 + "description": "Episode GUID from the RSS feed." 44 + }, 45 + "podcastGuid": { 46 + "type": "string", 47 + "description": "Podcasting 2.0 podcast:guid." 48 + } 49 + } 50 + } 51 + } 52 + }
+44
lexicons/xyz/effem/feed/list.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "xyz.effem.feed.list", 4 + "defs": { 5 + "main": { 6 + "type": "record", 7 + "description": "A curated list of podcasts (e.g. 'My startup pods', 'True crime essentials').", 8 + "key": "tid", 9 + "record": { 10 + "type": "object", 11 + "required": ["name", "podcasts", "createdAt"], 12 + "properties": { 13 + "name": { 14 + "type": "string", 15 + "minLength": 1, 16 + "minGraphemes": 1, 17 + "maxLength": 500, 18 + "maxGraphemes": 50 19 + }, 20 + "description": { 21 + "type": "string", 22 + "minLength": 1, 23 + "minGraphemes": 1, 24 + "maxLength": 3000, 25 + "maxGraphemes": 300 26 + }, 27 + "podcasts": { 28 + "type": "array", 29 + "minLength": 1, 30 + "maxLength": 200, 31 + "items": { 32 + "type": "ref", 33 + "ref": "xyz.effem.feed.defs#podcastRef" 34 + } 35 + }, 36 + "createdAt": { 37 + "type": "string", 38 + "format": "datetime" 39 + } 40 + } 41 + } 42 + } 43 + } 44 + }
+34
lexicons/xyz/effem/feed/recommendation.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "xyz.effem.feed.recommendation", 4 + "defs": { 5 + "main": { 6 + "type": "record", 7 + "description": "A recommendation (like/upvote) for a podcast episode.", 8 + "key": "tid", 9 + "record": { 10 + "type": "object", 11 + "required": ["subject", "createdAt"], 12 + "properties": { 13 + "subject": { 14 + "type": "ref", 15 + "ref": "xyz.effem.feed.defs#episodeRef", 16 + "description": "The episode being recommended." 17 + }, 18 + "text": { 19 + "type": "string", 20 + "minLength": 1, 21 + "minGraphemes": 1, 22 + "maxLength": 1000, 23 + "maxGraphemes": 100, 24 + "description": "Optional short blurb about why this episode is great." 25 + }, 26 + "createdAt": { 27 + "type": "string", 28 + "format": "datetime" 29 + } 30 + } 31 + } 32 + } 33 + } 34 + }
+25
lexicons/xyz/effem/feed/subscription.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "xyz.effem.feed.subscription", 4 + "defs": { 5 + "main": { 6 + "type": "record", 7 + "description": "Record declaring a podcast subscription. Stored in the user's AT Proto repo.", 8 + "key": "tid", 9 + "record": { 10 + "type": "object", 11 + "required": ["podcast", "createdAt"], 12 + "properties": { 13 + "podcast": { 14 + "type": "ref", 15 + "ref": "xyz.effem.feed.defs#podcastRef" 16 + }, 17 + "createdAt": { 18 + "type": "string", 19 + "format": "datetime" 20 + } 21 + } 22 + } 23 + } 24 + } 25 + }