Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RPCBroadcaster ¶
type RPCBroadcaster struct { Clients map[string]*RPCClient Log *zap.Logger Responses chan request.RawParams // contains filtered or unexported fields }
RPCBroadcaster represent generic RPC broadcaster.
func NewRPCBroadcaster ¶
func NewRPCBroadcaster(log *zap.Logger, sendTimeout time.Duration) *RPCBroadcaster
NewRPCBroadcaster returns new RPC broadcaster instance.
func (*RPCBroadcaster) NewRPCClient ¶
func (r *RPCBroadcaster) NewRPCClient(addr string, method SendMethod, timeout time.Duration, ch chan request.RawParams) *RPCClient
NewRPCClient returns new rpc client for provided address and method.
func (*RPCBroadcaster) Shutdown ¶
func (r *RPCBroadcaster) Shutdown()
Shutdown implements oracle.Broadcaster.
Click to show internal directories.
Click to hide internal directories.