remove notes which were accidentally committed

This commit is contained in:
2022-02-09 08:55:11 +02:00
parent 7aa32e24c7
commit 1c434193eb
3 changed files with 0 additions and 132 deletions

View File

@ -1,65 +0,0 @@
Higher level functions:
```rust
let mut sbot_client = Sbot::connect();
// second parameter is `Option<id>`; if `None`, return our relationship with `id`
// if second parameter is `Some(dest_id)`, return id's relationship with dest_id
match sbot_client.get_relationship(id, None) {
Relationship::Following => ,
Relationship::NotFollowing => ,
Relationship::Blocking => ,
Relationship::Muting => ,
}
sbot_client.set_relationship(id,
```
data structures
```rust
enum Relationship {
Following,
NotFollowing,
Blocking,
Muting
}
struct Profile {
id: String,
name: String,
description: String,
// blob reference (maybe?)
image: String,
}
```
-----
whoami - id: String
name(id) -> name: String
description(id) -> description: String
publish_description(id, text) -> msg_ref: String
publish_name(id, text) -> msg_ref: String
publish_post(text) -> msg_ref: String
follows(id) -> Vec<SsbId>
followers(id) -> Vec<SsbId>
friends(id) -> Vec<SsbId>
blocks(id) -> Vec<SsbId>
follow(id) -> msg_ref
unfollow(id) -> msg_ref
block(id) -> msg_ref
profile_image(id)
-----
```
let mut sbot_client = Sbot::init();
```
-----

View File

@ -1,33 +0,0 @@
[ how to use subset query ]
name of the muxrpc call: `paritalReplication.getSubset`
https://github.com/cryptoscope/ssb/blob/a781ad4ee51523df1d3858d9859c285d0eeb2fb1/sbot/manifest.go#L75-L76
subset query tests
https://github.com/cryptoscope/ssb/blob/a781ad4ee51523df1d3858d9859c285d0eeb2fb1/query/subsetquery_test.go
[ subset query args ]
get all msgs of type `foo`:
{"op":"type","string":"foo"}
get all msgs by author `feed`:
{"op":"author","feed":"@AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE=.ed25519"}
get all msgs of type `foo` by author `feed`:
{"op":"and","args":[{"op":"author","feed":"@AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE=.ed25519"},{"op":"type","string":"foo"}]}
get all msgs of type `foo` or `bar`:
{"op":"or","args":[{"op":"type","string":"foo"},{"op":"type","string":"bar"}]}
get all msgs of type `foo` and `bar` by author `feed`:
{"op":"and","args":[{"op":"author","feed":"@AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE=.ed25519"},{"op":"or","args":[{"op":"type","string":"foo"},{"op":"type","string":"bar"}]}]}

34
notes
View File

@ -1,34 +0,0 @@
[ current ]
src
├── error.rs
├── lib.rs
├── messages.rs
├── sbot
│ ├── about.rs
│ ├── friends.rs
│ ├── get_subset.rs
│ ├── history_stream.rs
│ ├── invite.rs
│ ├── mod.rs
│ ├── publish.rs
│ └── sbot_connection.rs
└── utils.rs
[ experiment ]
src
├── api
│ ├── about.rs
│ ├── friends.rs
│ ├── get_subset.rs
│ ├── history_stream.rs
│ ├── invite.rs
│ ├── mod.rs
│ └── publish.rs
├── error.rs
├── lib.rs
├── messages.rs
├── sbot.rs
└── utils.rs