Closed Akilan1999 closed 1 year ago
The following PR works on extending your Go application with p2prc with really few lines of code.
package main import "github.com/Akilan1999/p2p-rendering-computation/abstractions" func main() { // Initialize with base p2prc config files err := abstractions.Init("TEST") if err != nil { return } // start p2prc _, err = abstractions.Start() if err != nil { return } }
Init(<Project name>)
Start()
The following PR works on extending your Go application with p2prc with really few lines of code.
Example
Config package change log
Init(<Project name>)
: Initialises P2PRC with all the needed configurations.Start()
: Starts p2prc as a server and makes it possible to extend by adding other routes and functionality to P2PRC.