Akilan Selvacoumar 3f9747e5a6 Update README.md
2022-12-26 11:40:55 +00:00
2022-12-11 11:48:58 +00:00
2022-12-10 06:37:11 +00:00
2022-12-11 06:20:48 +00:00
2022-12-12 11:35:47 +00:00
2022-12-11 06:18:00 +00:00
2022-12-10 06:37:11 +00:00
2022-12-10 06:37:11 +00:00
2022-12-26 11:40:55 +00:00

Abstraction

NOTE: This is a 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 GopherAdvent blog post. The objective is to prove how easy it's to extend your Go application with p2p capabilites using Peernet.

Blog post: https://gopheradvent.com/calendar/2022/peernet-protocol/

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
No description provided
Readme 2.9 MiB
Languages
Go 100%