Documentation
¶
Index ¶
- type WSProvider
- func (p *WSProvider) Call(result interface{}, method string, params ...interface{}) error
- func (p *WSProvider) CallRaw(method string, params ...interface{}) ([]byte, error)
- func (p *WSProvider) Start() error
- func (p *WSProvider) Stop()
- func (p *WSProvider) Subscribe(receiver chan *json.RawMessage, method string, event string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WSProvider ¶
type WSProvider struct {
// contains filtered or unexported fields
}
func (*WSProvider) Call ¶
func (p *WSProvider) Call(result interface{}, method string, params ...interface{}) error
Call calls a RPC method and returns coresponding object
func (*WSProvider) CallRaw ¶
func (p *WSProvider) CallRaw(method string, params ...interface{}) ([]byte, error)
CallRaw calls a RPC method and returns the raw result
func (*WSProvider) Start ¶
func (p *WSProvider) Start() error
Start connects to parity and starts listening for notifications
func (*WSProvider) Subscribe ¶
func (p *WSProvider) Subscribe(receiver chan *json.RawMessage, method string, event string, params ...interface{}) error
Subscribe creates a subscription to event using method
Click to show internal directories.
Click to hide internal directories.