Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { EventDuration prometheus.Histogram ReceivedMNT prometheus.Counter Events prometheus.Counter }
Metrics data
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher listens for a refill event from mint-sender (watcher) service, then checks if transaction sender is registered (swap prepared for that address) and saves a new deposit into DB
func New ¶
func New( d db.DAO, swapAddress mint.PublicKey, alerter alert.Alerter, mintsenderURL, mintsenderPrefix, mintsenderService string, logger *logrus.Entry, ) (*Watcher, error)
New instance
func (*Watcher) AddMetrics ¶
AddMetrics adds metrics counters and should be called before service launch
func (*Watcher) RegisterSwapAddress ¶
RegisterSwapAddress registers specified addresses on mint-sender (watcher) service
Click to show internal directories.
Click to hide internal directories.