Skip to content

Commit

Permalink
chore: remove kad implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
blakebyrnes committed Feb 1, 2024
1 parent fc11630 commit 55ab824
Show file tree
Hide file tree
Showing 71 changed files with 11 additions and 9,177 deletions.
1 change: 0 additions & 1 deletion cloud/docs/links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
- title: Modules
items:
- CloudNode
- Kad
- NodeRegistry
# - ChromeAlive

Expand Down
12 changes: 1 addition & 11 deletions cloud/docs/modules/cloud-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,7 @@ Creates a new CloudNode instance.
- host `string`. An ip or domain name (if applicable) to bind the server to.
- servicesSetupHost `string`. An ip:port to dial to discover hosted services to use.
- nodeRegistryHost `string` | `self`. A service used to track CloudNode health. If `self`, will be set to this server's `hostedServicesServer.host` after it starts.
- cloudType `private | 'public`. If public, this node will dial into the public network and (implicitly) expose datastores for download.
- kadBootstrapPeers `string[]`. The Kademlia Distributed Hash Table (DHT) peers to connect to for network discovery and sharing. List should be `host:nodeId` to ensure only the expected nodeId (`Identity`) is connected to.
- kadEnabled `boolean`. Whether to enable the Kademlia DHT.
- kadDbPath `string`. A path to store node information.
- networkIdentity `Identity`. An Identity (Ed25519 keypair) used for network (both kad and services) signatures.
- networkIdentity `Identity`. An Identity (Ed25519 keypair) used to secure network services.
- hostedServicesServerOptions: `object`. Options for the HostedServices server:

- port `number`. A port to expose hosted service apis on. Defaults to `18181`. Setting this value will activate hosted services. `0` will find any open port.
Expand Down Expand Up @@ -99,12 +95,6 @@ Returns the URL to the hosted Services _used_ by this node if acting as a client

#### **Type**: `URL`

### cloudNode.kad {#kad}

Returns the [Kad](./kad.md) object (if activated).

#### **Type**: [`Kad`](./kad.md)

### cloudNode.host {#address}

Returns the host the cloudNode, ie `localhost:1778`.
Expand Down
33 changes: 0 additions & 33 deletions cloud/docs/modules/kad.md

This file was deleted.

4 changes: 0 additions & 4 deletions cloud/docs/overview/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ You can configure what IP/port to listen for Hosted Services using the `hostedSe

Other nodes in your cluster can use these services by simply specifying this hosted services server host (`setupHost: localhost: 18181`)

### CloudNode Type

A CloudNode is private by default. If you set the `cloudType` to `public` in the [CloudNode constructor](../modules/cloud-node.md#constructor), your Datastores will be publicly available for download with attached payment.

### Configure Hero Core

You can configure Hero with any desired options using the `heroCoreConfiguration` property on the [CloudNode constructor](../modules/cloud-node.md#constructor).
Expand Down
50 changes: 0 additions & 50 deletions cloud/kad/CHANGELOG.md

This file was deleted.

4 changes: 0 additions & 4 deletions cloud/kad/LICENSE

This file was deleted.

5 changes: 0 additions & 5 deletions cloud/kad/LICENSE-APACHE

This file was deleted.

19 changes: 0 additions & 19 deletions cloud/kad/LICENSE-MIT

This file was deleted.

17 changes: 0 additions & 17 deletions cloud/kad/README.md

This file was deleted.

38 changes: 0 additions & 38 deletions cloud/kad/db/KadDb.ts

This file was deleted.

78 changes: 0 additions & 78 deletions cloud/kad/db/PeersTable.ts

This file was deleted.

49 changes: 0 additions & 49 deletions cloud/kad/db/ProvidersTable.ts

This file was deleted.

Loading

0 comments on commit 55ab824

Please sign in to comment.