jsonrpc

package
v0.0.0-...-629276b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2016 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonRpcHttpInfo

type JsonRpcHttpInfo struct {
	Status  client.Status
	Headers map[string][]string
}

Represents the information of HTTP responsed on JSONRPC service

type JsonRpcService

type JsonRpcService struct {
	// contains filtered or unexported fields
}

Represents the service information of JSONRPC(2.0)

func NewService

func NewService(url string) *JsonRpcService

Initialize a service for JSONRPC(2.0)

func (*JsonRpcService) CallMethod

func (service *JsonRpcService) CallMethod(method string, params interface{}, reply interface{}) (*JsonRpcHttpInfo, error)

Calls method of JSONRPC

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL