Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockJSONRPCServer ¶
func MockJSONRPCServer(requestChan chan *RequestData) (*httptest.Server, func(string))
MockJSONRPCServer creates a JSONRPC server that can be used to test clients NOTE: if you want to make sure that you get requests in your requestChan one by one, limit the channel to a buffer size of 1. then writes to the chan will block until you read it
Types ¶
type RequestData ¶
Click to show internal directories.
Click to hide internal directories.