mirror of
https://github.com/PeernetOfficial/Abstraction.git
synced 2026-07-23 05:27:52 +01:00
Update README.md
This commit is contained in:
committed by
GitHub
parent
7aebe94ef1
commit
16fff5edcf
24
README.md
24
README.md
@@ -1,2 +1,24 @@
|
||||
# Abstraction
|
||||
This is temporary repo for better abstraction calls for the Peernet core repo. This is expected to be deprecated once the core officially supports strong abstractions.
|
||||
> **_NOTE:_** This is temporary repo for better abstraction calls for the Peernet core repo. This is expected to be deprecated once the core officially supports strong abstractions.
|
||||
|
||||
The following repo was created for the GoAdvent blog post. The objective to prove how easy it's to extend your Go application with p2p capabilites
|
||||
using Peernet.
|
||||
|
||||
## Function calls supported
|
||||
### Search a file:
|
||||
```go
|
||||
Abstrations.Search(&<web api object>, "space")
|
||||
```
|
||||
### Downloading a file
|
||||
```go
|
||||
Abstrations.Download(&<web api object>,<file hash>,<node id>,<download path>)
|
||||
```
|
||||
### Add a file to peernet
|
||||
```go
|
||||
Abstrations.Touch(&<web api object>, <file path>)
|
||||
```
|
||||
|
||||
### Remove a file to peernet
|
||||
```go
|
||||
Abstrations.Rm(&<web api object>, <file id>)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user