Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.49 KB

index.md

File metadata and controls

44 lines (34 loc) · 1.49 KB

Golang

Structure

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)

JsonRPC

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 Image

Support or Contact

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.