+1
-1
atproto/lexicon/catalog.go
+1
-1
atproto/lexicon/catalog.go
···
14
14
15
15
// Interface type for a resolver or container of lexicon schemas, and methods for validating generic data against those schemas.
16
16
type Catalog interface {
17
-
// Looks up a schema refrence (NSID string with optional fragment) to a Schema object.
17
+
// Looks up a schema reference (NSID string with optional fragment) to a Schema object.
18
18
Resolve(ref string) (*Schema, error)
19
19
}
20
20
+1
-1
atproto/lexicon/lexicon.go
+1
-1
atproto/lexicon/lexicon.go
···
17
17
StrictRecursiveValidation
18
18
)
19
19
20
-
// Combination of agument flags for less formal validation. Recommended for, eg, working with old/legacy data from 2023.
20
+
// Combination of argument flags for less formal validation. Recommended for, eg, working with old/legacy data from 2023.
21
21
var LenientMode ValidateFlags = AllowLegacyBlob | AllowLenientDatetime
22
22
23
23
// Represents a Lexicon schema definition
+1
-1
atproto/lexicon/testdata/catalog/query.json
+1
-1
atproto/lexicon/testdata/catalog/query.json
+1
-1
atproto/lexicon/testdata/catalog/record.json
+1
-1
atproto/lexicon/testdata/catalog/record.json
+1
-1
atproto/repo/mst/encoding.go
+1
-1
atproto/repo/mst/encoding.go
···
52
52
return &nd, nil
53
53
}
54
54
55
-
// Transforms `Node` stuct to `NodeData`, which is the format used for encoding to CBOR.
55
+
// Transforms `Node` struct to `NodeData`, which is the format used for encoding to CBOR.
56
56
//
57
57
// Will panic if any entries are missing a CID (must compute those first)
58
58
func (n *Node) NodeData() NodeData {
+2
-2
cmd/collectiondir/README.md
+2
-2
cmd/collectiondir/README.md
···
33
33
34
34
`listCollections` returns JSON with a map of collection name to approximate number of dids implementing it.
35
35
With no `c` parameter it returns all known collections with cursor paging.
36
-
With up to 20 repeated `c` paramaters it returns only those collections (no paging).
36
+
With up to 20 repeated `c` parameters it returns only those collections (no paging).
37
37
It may be the cached result of a computation, up to several minutes out of date.
38
38
```json
39
39
{"collections":{"app.bsky.feed.post": 123456789, "some collection": 42},
···
53
53
it then calls the collection directory for a list of repos which may have already created data in this collection,
54
54
and does `getRepo` calls to those repo's PDSes to get prior data.
55
55
By the time it is done paging forward through the collection directory results and getting those repos,
56
-
it will have backfilled data and new data it has collected live off the firehose.
56
+
it will have backfilled data and new data it has collected live off the firehose.
+1
-1
cmd/collectiondir/serve.go
+1
-1
cmd/collectiondir/serve.go
···
486
486
}
487
487
488
488
// return cached collection stats if they're fresh
489
-
// return new collection stats if they can be calculated quicly
489
+
// return new collection stats if they can be calculated quickly
490
490
// return stale cached collection stats if new stats take too long
491
491
// just wait for fresh stats if there are no cached stats
492
492
// stalenessAllowed is how old stats can be before we try to recalculate them, 0=default of 5 minutes