Documentation ¶
Index ¶
- func FireEvent(event *Event)
- func GracefulStop()
- func Subscribe(subscriber *Receiver, topic Topic)
- func Unsubscribe(suber *actor.PID, topic Topic)
- type ChainEvent
- type ChainHeadEvent
- type ChainSideEvent
- type EleType
- type Event
- type EventType
- type LogsEvent
- type Receiver
- type RemovedLogsEvent
- type Subscriber
- type Subscribers
- type SyncEvent
- func (e *SyncEvent) Notify(eventtype EventType, value interface{}) (err error)
- func (e *SyncEvent) NotifyAll(v interface{}) (errs []error)
- func (e *SyncEvent) NotifyChannel(subscriber Subscriber, value interface{}) (err error)
- func (e *SyncEvent) Subscribe(eventtype EventType) Subscriber
- func (e *SyncEvent) UnSubscribe(eventtype EventType, subscriber Subscriber) (err error)
- type Topic
- type Trigger
- type TxPreEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Unsubscribe ¶
Types ¶
type ChainHeadEvent ¶
type ChainSideEvent ¶
type Receiver ¶
type Receiver struct {
// contains filtered or unexported fields
}
func RegisterReceiver ¶
type RemovedLogsEvent ¶
type Subscriber ¶
type Subscriber chan interface{}
type Subscribers ¶
type Subscribers struct {
// contains filtered or unexported fields
}
type SyncEvent ¶
type SyncEvent struct {
// contains filtered or unexported fields
}
func (*SyncEvent) NotifyChannel ¶
func (e *SyncEvent) NotifyChannel(subscriber Subscriber, value interface{}) (err error)
Notify with subscriber channel.
func (*SyncEvent) Subscribe ¶
func (e *SyncEvent) Subscribe(eventtype EventType) Subscriber
Subscribe specified event.
func (*SyncEvent) UnSubscribe ¶
func (e *SyncEvent) UnSubscribe(eventtype EventType, subscriber Subscriber) (err error)
UnSubscribe the event and remove the specified subscriber
type Trigger ¶
type Trigger struct {
// contains filtered or unexported fields
}
func RegisterTrigger ¶
type TxPreEvent ¶
type TxPreEvent struct {
Message *types.Transaction
}
Click to show internal directories.
Click to hide internal directories.