atproto/constellation
Client for Constellation, the microcosm atproto-wide backlink index: which records link to a given record, identity, or URL.
Types
One linking record; record_uri turns it back into an at-uri.
pub type Backlink {
Backlink(did: String, collection: String, rkey: String)
}
Constructors
-
Backlink(did: String, collection: String, rkey: String)
pub type BacklinksPage {
BacklinksPage(
total: Int,
records: List(Backlink),
cursor: option.Option(String),
)
}
Constructors
-
BacklinksPage( total: Int, records: List(Backlink), cursor: option.Option(String), )
Values
pub const default_host: String
pub fn get_backlinks(
client: xrpc.Client,
host: String,
subject subject: String,
source source: String,
limit limit: Int,
cursor cursor: option.Option(String),
) -> Result(BacklinksPage, xrpc.XrpcError)
Records linking to subject (an at-uri, DID, or plain URL). source names
where the link must appear: <collection>:<json.path>, e.g.
app.bsky.feed.like:subject.uri.
pub fn record_uri(backlink: Backlink) -> String