relayer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Relayer

type Relayer struct {
	DB          *gorm.DB
	AFCExecutor executor.AfcExecutor
	Config      *util.Config
}

func NewRelayer

func NewRelayer(db *gorm.DB, afcExecutor executor.AfcExecutor, cfg *util.Config) *Relayer

NewRelayer returns the relayer instance

func (*Relayer) Alert

func (r *Relayer) Alert()

Alert sends alert to tg group if there is any package delayed

func (*Relayer) Main

func (r *Relayer) Main()

Main starts the routines of relayer

func (*Relayer) RelayPackages

func (r *Relayer) RelayPackages()

RelayPackages starts the main routine for processing the cross-chain packages

Jump to

Keyboard shortcuts

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