Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDisconnected = errors.New("disconnected")
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func NewEventIngestionEngine ¶
func NewEventIngestionEngine( subscriber EventSubscriber, blocks storage.BlockIndexer, receipts storage.ReceiptIndexer, transactions storage.TransactionIndexer, accounts storage.AccountIndexer, log zerolog.Logger, ) *Engine
func (*Engine) Done ¶
func (e *Engine) Done() <-chan struct{}
Done signals when the engine has stopped.
func (*Engine) Ready ¶
func (e *Engine) Ready() <-chan struct{}
Ready signals when the engine has started.
type EventSubscriber ¶
type EventSubscriber interface { // Subscribe to relevant events from the provided block height. // Returns a channel with block events and errors, // if subscription fails returns an error as the third value. Subscribe(ctx context.Context, height uint64) (<-chan flow.BlockEvents, <-chan error, error) }
type RPCSubscriber ¶
type RPCSubscriber struct {
// contains filtered or unexported fields
}
func NewRPCSubscriber ¶
func NewRPCSubscriber(client access.Client) *RPCSubscriber
Click to show internal directories.
Click to hide internal directories.