diff --git a/api_design_notes b/api_design_notes deleted file mode 100644 index d8af7b9..0000000 --- a/api_design_notes +++ /dev/null @@ -1,65 +0,0 @@ -Higher level functions: - -```rust -let mut sbot_client = Sbot::connect(); - -// second parameter is `Option`; 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 -followers(id) -> Vec -friends(id) -> Vec -blocks(id) -> Vec - -follow(id) -> msg_ref -unfollow(id) -> msg_ref -block(id) -> msg_ref - -profile_image(id) - ------ - -``` -let mut sbot_client = Sbot::init(); -``` - ------ \ No newline at end of file diff --git a/muxrpc_notes b/muxrpc_notes deleted file mode 100644 index 7218136..0000000 --- a/muxrpc_notes +++ /dev/null @@ -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"}]}]} diff --git a/notes b/notes deleted file mode 100644 index 5dc3752..0000000 --- a/notes +++ /dev/null @@ -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