mirror of
https://github.com/PeernetOfficial/Abstraction.git
synced 2026-07-20 12:27:51 +01:00
236e1f6703002837126266bade75072a11436799
Abstraction
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:
Abstrations.Search(&<web api object>, "space")
Downloading a file
Abstrations.Download(&<web api object>,<file hash>,<node id>,<download path>)
Add a file to peernet
Abstrations.Touch(&<web api object>,<file path>)
Remove a file to peernet
Abstrations.Rm(&<web api object>,<file id>)
An Example workflow can be found here (https://github.com/PeernetOfficial/Abstraction/blob/main/example/example.go)
Description
Languages
Go
100%