Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoResult = errors.New("no result in JSON-RPC response")
)
Functions ¶
This section is empty.
Types ¶
type HttpConn ¶
type HttpConn struct {
// contains filtered or unexported fields
}
func (*HttpConn) CallContext ¶
CallContext performs a JSON-RPC call with the given arguments. If the context is canceled before the call has successfully returned, CallContext returns immediately.
The result must be a pointer so that package json can unmarshal into it. You can also pass nil, in which case the result is ignored.
Click to show internal directories.
Click to hide internal directories.