Documentation ¶
Index ¶
- func UseLogger(logger l.Logger)
- type IZMQNotification
- type ZMQNotification
- func (zn *ZMQNotification) BlockAccepted(block *types.SerializedBlock)
- func (zn *ZMQNotification) BlockConnected(block *types.SerializedBlock)
- func (zn *ZMQNotification) BlockDisconnected(block *types.SerializedBlock)
- func (zn *ZMQNotification) Init(cfg *config.Config)
- func (zn *ZMQNotification) IsEnable() bool
- func (zn *ZMQNotification) Shutdown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IZMQNotification ¶
type IZMQNotification interface { // init Init(cfg *config.Config) // is enable IsEnable() bool // block accepted BlockAccepted(block *types.SerializedBlock) // block connected BlockConnected(block *types.SerializedBlock) // block connected BlockDisconnected(block *types.SerializedBlock) // Shutdown Shutdown() }
The interface for ZeroMQ notificaion
func NewZMQNotification ¶
func NewZMQNotification(cfg *config.Config) IZMQNotification
New ZMQ Notification
type ZMQNotification ¶
type ZMQNotification struct { }
This ZeroMQ notification is default for Qitmeer If you want to enable ZMQ for Qitmeer, you must use 'zmq' tags when go building
func (*ZMQNotification) BlockAccepted ¶
func (zn *ZMQNotification) BlockAccepted(block *types.SerializedBlock)
block accepted
func (*ZMQNotification) BlockConnected ¶
func (zn *ZMQNotification) BlockConnected(block *types.SerializedBlock)
block connected
func (*ZMQNotification) BlockDisconnected ¶
func (zn *ZMQNotification) BlockDisconnected(block *types.SerializedBlock)
block connected
func (*ZMQNotification) Init ¶
func (zn *ZMQNotification) Init(cfg *config.Config)
Initialization notification
func (*ZMQNotification) IsEnable ¶
func (zn *ZMQNotification) IsEnable() bool
Click to show internal directories.
Click to hide internal directories.