Package structure should look as follows:
/package
doc.go (package documentation)
/handler
doc.go (package documentation)
handler.go (interface)
/default
handler.go (implementation)
/recordkeeper
doc.go (package documentation)
recordkeeper.go (interface)
/adaptors
/exceptions
errors.go (custom errors for this package)
/mongo
recordkeeper.go (implementation)
How to register JsonRPC adaptors
if err = apiServer.RegisterService(&requestForFundsHandlerJsonRpcAdaptor, "RequestForFunds-Handler"); err != nil {
log.Fatal("Failed to register RequestForFunds-Handler")
}
Take note of the structure for the name
parameter "RequestForFunds-Handler"
Link and
Having trouble with Pages? Check out our documentation or contact support and we’ll help you sort it out.
You can use the editor on GitHub to maintain and preview the content of this website in Markdown files.
Whenever you commit to this repository, GitHub Pages will run Jekyll to rebuild the pages in your site, from the content in your Markdown files.
For more details see GitHub Flavored Markdown.