Skip to content

A very simple helper library for calling JSON-RPC (v2) methods.

License

Notifications You must be signed in to change notification settings

husarlabs/go-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-rpc

A very simple helper library for calling JSON-RPC (v2) methods.

Install:

go get -u github.com/husarlabs/go-rpc

Import:

import (
    "github.com/husarlabs/go-rpc"
)

Usage:

args := make(map[string]interface{})
res := make(map[string]interface{})
args["id"] = 1

client, err := rpc.NewClient(nil, "http://localhost:5050")
if err != nil {
    return
}

err = client.Call("method", &args, &res)
if err != nil {
    return
}
fmt.Println(res)

About

A very simple helper library for calling JSON-RPC (v2) methods.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages