sender

package
Version: v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	RequestSent prometheus.Counter
}

Metrics data

type Sender

type Sender struct {
	// contains filtered or unexported fields
}

Sender checks MNT deposits and requires ethsvc service to send MNTP

func New

func New(
	d db.DAO,
	ethsvcGRPC string,
	logger *logrus.Entry,
) (*Sender, error)

New instance

func (*Sender) AddMetrics

func (s *Sender) AddMetrics(m *Metrics)

AddMetrics adds metrics counters and should be called before service launch

func (*Sender) Close

func (s *Sender) Close() error

Close instance

func (*Sender) Task

func (s *Sender) Task(token *gotask.Token)

Task loop

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL