package
Version:
v0.0.0-...-d51bd7d
Opens a new window with list of versions in this module.
Published: Apr 24, 2017
License: ISC
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package rpc is a client-only RPC package using websockets for javascript
type Call struct {
ServiceMethod string
Args, Reply interface{}
Error error
Done chan *Call
}
Call represents the necessary data for an RPC call
Client is an RPC client
Dial connects a websocket to the given address and creates the client
Call make an RPC request to the given method name
Close closes the websocket - it does not currently do anything special with
outstanding requests
Go makes an RPC request in a goroutine, returning a Call for the user to
be notified upon completion and to retrieve any errors returned.
If a nil done chan is given, one will be created
Source Files
¶
Click to show internal directories.
Click to hide internal directories.