GoAT Site is library that implements Standard.site in Go.
atprotocol standard-site atproto library
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs(info): update readme to fit with new names

+5 -4
+5 -4
README.md
··· 26 26 You can get, list, create, update or delete them with functions: 27 27 - `xrpc.GetRecord[*site.Publication]` to get a publication; 28 28 - `xrpc.ListRecords[*site.Document]` to list documents; 29 - - `xrpc.CreateRecord[*site.Document]` to create a new document; 30 - - `xrpc.UpdateRecord[*site.Subscription]` to update a subscription; 29 + - `xrpc.CreateRecord` to create a new document; 30 + - `xrpc.PutRecord` to update a subscription; 31 31 - `xrpc.DeleteRecord[*site.Publication]` to delete a publication. 32 32 33 33 You can [verify](https://standard.site/docs/verification/) a publication with `Publication.Verify` and a document with ··· 36 36 var pub *site.Publication 37 37 var did *atproto.DID 38 38 var client xrpc.Client 39 - valid, err := pub.Verify(context.Background(), client, did, "pub_rkey") 39 + var rkey atproto.RecordKey 40 + valid, err := pub.Verify(context.Background(), client, did, rkey) 40 41 if err != nil { 41 42 panic(err) 42 43 } ··· 49 50 if err != nil { 50 51 panic(err) 51 52 } 52 - valid, err = doc.Verify(context.Background(), client, pubUrl, did, "doc_rkey") 53 + valid, err = doc.Verify(context.Background(), client, pubUrl, did, rkey) 53 54 if err != nil { 54 55 panic(err) 55 56 }