Documentation
¶
Index ¶
- Constants
- Variables
- func AXChainNotReady(err error) bool
- func ChainNotReady(err error) bool
- func GetTopicName(networkID uint32, chainID string, eventType EventType) string
- func IndexNotReady(err error) bool
- func NewMessage(id string, chainID string, body []byte, timestamp int64, nanosecond int64) services.Consumable
- func NewProducerAXChain(sc *servicesctrl.Control, conf cfg.Config) utils.ListenCloser
- func TrimNL(msg string) string
- func UpdateTxPool(ctxTimeout time.Duration, conns *utils.Connections, persist db.Persist, ...) error
- type EventType
- type IndexType
- type IndexedChain
- type Message
- type ProcessorDB
- type ProcessorFactoryChainDB
- type ProcessorFactoryInstDB
- type ProducerAXChain
- type ProducerChain
Constants ¶
View Source
const ( IndexerTimeout = 3 * time.Minute MaxTxRead = 500 )
Variables ¶
View Source
var ( ErrUnknownVM = errors.New("unknown VM") ErrInvalidTopicName = errors.New("invalid topic name") ErrWrongTopicEventType = errors.New("wrong topic event type") ErrWrongTopicNetworkID = errors.New("wrong topic networkID") )
View Source
var ( // ErrNoMessage is no message ErrNoMessage = errors.New("no message") )
Functions ¶
func AXChainNotReady ¶
func ChainNotReady ¶
func IndexNotReady ¶
func NewMessage ¶
func NewProducerAXChain ¶
func NewProducerAXChain(sc *servicesctrl.Control, conf cfg.Config) utils.ListenCloser
func UpdateTxPool ¶
Types ¶
type IndexedChain ¶
type IndexedChain byte
const ( IndexXChain IndexedChain = iota IndexCoreChain IndexAXChain )
func (IndexedChain) String ¶
func (t IndexedChain) String() string
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
Message is a message on the event stream
func (*Message) Nanosecond ¶
type ProcessorDB ¶
type ProcessorFactoryChainDB ¶
type ProcessorFactoryChainDB func(*servicesctrl.Control, cfg.Config, string, string) (ProcessorDB, error)
func NewConsumerDBFactory ¶
func NewConsumerDBFactory(factory serviceConsumerFactory, eventType EventType) ProcessorFactoryChainDB
NewConsumerFactory returns a processorFactory for the given service consumer
type ProcessorFactoryInstDB ¶
type ProcessorFactoryInstDB func(*servicesctrl.Control, cfg.Config) (ProcessorDB, error)
func NewConsumerAXChainDB ¶
func NewConsumerAXChainDB() ProcessorFactoryInstDB
type ProducerAXChain ¶
type ProducerAXChain struct {
// contains filtered or unexported fields
}
func (*ProducerAXChain) Close ¶
func (p *ProducerAXChain) Close() error
func (*ProducerAXChain) Failure ¶
func (p *ProducerAXChain) Failure()
func (*ProducerAXChain) ID ¶
func (p *ProducerAXChain) ID() string
func (*ProducerAXChain) Listen ¶
func (p *ProducerAXChain) Listen() error
func (*ProducerAXChain) Success ¶
func (p *ProducerAXChain) Success()
type ProducerChain ¶
type ProducerChain struct {
// contains filtered or unexported fields
}
func NewProducerChain ¶
func NewProducerChain(sc *servicesctrl.Control, conf cfg.Config, chainID string, eventType EventType, indexerType IndexType, indexerChain IndexedChain) (*ProducerChain, error)
func (*ProducerChain) Close ¶
func (p *ProducerChain) Close() error
func (*ProducerChain) Failure ¶
func (p *ProducerChain) Failure()
func (*ProducerChain) ID ¶
func (p *ProducerChain) ID() string
func (*ProducerChain) Listen ¶
func (p *ProducerChain) Listen() error
func (*ProducerChain) Success ¶
func (p *ProducerChain) Success()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.