Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventReader ¶
type EventReader struct {
// contains filtered or unexported fields
}
EventReader reads MntpSwap contract logs and filters fresh events. Posts the fresh events to the specified channel (to the swapper)
func New ¶
func New( c *swapcontract.Contract, d db.DAO, chNewSwaps chan<- *types.Swap, logger *logrus.Entry, ) (*EventReader, error)
New instance
func (*EventReader) AddMetrics ¶
func (er *EventReader) AddMetrics(m *Metrics)
AddMetrics adds metrics counters and should be called before service launch
type Metrics ¶
type Metrics struct { LastBlock prometheus.Gauge Events prometheus.Counter }
Metrics data
Click to show internal directories.
Click to hide internal directories.