sdk in its own dir

This commit is contained in:
mfahampshire
2024-08-27 18:01:08 +02:00
parent cf2afc6adf
commit 712fa519e9
10 changed files with 7 additions and 9 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
{
"typescript": "Typescript",
"rust": "Rust"
"rust": "Rust SDK",
"typescript": "Typescript SDK"
}
@@ -1,6 +1,5 @@
{
"index": "Introduction",
"concepts": "Core Concepts",
"examples": "Basic Examples",
"message-helpers": "Message Helpers",
"message-types": "Message Types",
@@ -1,5 +0,0 @@
{
"overview": "Overview",
"messages": "Message Based Paradigm",
"abstractions": "Connection Abstractions"
}
@@ -0,0 +1,3 @@
# Builder Patterns
Since there are two ways of creating an SDK client - ephemeral and with-storage - then there are two ways of applying the Builder Pattern to client creation.
@@ -1,5 +1,7 @@
# Mixnet Client Builder
You can spin up an ephemeral client like so. This client will not have a persistent identity and its keys will be dropped on restart. Since there is currently no way of reconnecting a client that has been disconnected after use, then treat disconnecting a client the same as dropping its keys entirely.
> You can find this code [here](https://github.com/nymtech/nym/blob/master/sdk/rust/nym-sdk/examples/builder.rs).
```rust
@@ -1,5 +1,4 @@
{
"custom-network": "Different Options",
"custom-provider": "Custom Topology Provider",
"manual-topology": "Manually Overwrite Topology"
}