Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { Balance prometheus.Gauge RequestSent prometheus.Counter RequestConfirmed prometheus.Counter RequestFailed prometheus.Counter }
Metrics data
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
Sender gets MNTP sendings from DB and performs sending, controlling current contract's MNTP balance
func New ¶
func New( dao db.DAO, contr *contract.Contract, alerter alert.Alerter, logger *logrus.Entry, ) *Sender
New instance
func (*Sender) AddMetrics ¶
AddMetrics adds metrics counters and should be called before service launch
Click to show internal directories.
Click to hide internal directories.