Documentation ¶
Index ¶
- type Acceptor
- type EventDispatcher
- func (ed *EventDispatcher) Accept(chainID, containerID ids.ID, container []byte)
- func (ed *EventDispatcher) Deregister(identifier string) error
- func (ed *EventDispatcher) DeregisterChain(chainID ids.ID, identifier string) error
- func (ed *EventDispatcher) Initialize(log logging.Logger)
- func (ed *EventDispatcher) Issue(chainID, containerID ids.ID, container []byte)
- func (ed *EventDispatcher) Register(identifier string, handler interface{}) error
- func (ed *EventDispatcher) RegisterChain(chainID ids.ID, identifier string, handler interface{}) error
- func (ed *EventDispatcher) Reject(chainID, containerID ids.ID, container []byte)
- type Issuer
- type Rejector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventDispatcher ¶
type EventDispatcher struct {
// contains filtered or unexported fields
}
EventDispatcher receives events from consensus and dispatches the events to triggers
func (*EventDispatcher) Accept ¶
func (ed *EventDispatcher) Accept(chainID, containerID ids.ID, container []byte)
Accept is called when a transaction or block is accepted
func (*EventDispatcher) Deregister ¶
func (ed *EventDispatcher) Deregister(identifier string) error
Deregister removes a handler from the system
func (*EventDispatcher) DeregisterChain ¶
func (ed *EventDispatcher) DeregisterChain(chainID ids.ID, identifier string) error
DeregisterChain removes a chain handler from the system
func (*EventDispatcher) Initialize ¶
func (ed *EventDispatcher) Initialize(log logging.Logger)
Initialize creates the EventDispatcher's initial values
func (*EventDispatcher) Issue ¶
func (ed *EventDispatcher) Issue(chainID, containerID ids.ID, container []byte)
Issue is called when a transaction or block is issued
func (*EventDispatcher) Register ¶
func (ed *EventDispatcher) Register(identifier string, handler interface{}) error
Register places a new handler into the system
func (*EventDispatcher) RegisterChain ¶
func (ed *EventDispatcher) RegisterChain(chainID ids.ID, identifier string, handler interface{}) error
RegisterChain places a new chain handler into the system
Click to show internal directories.
Click to hide internal directories.