relayer

package
v1.0.46 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: LGPL-3.0 Imports: 4 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 interface {
	TrackDepositMessage(m *message.Message)
}

type RelayedChain

type RelayedChain interface {
	PollEvents(ctx context.Context, sysErr chan<- error, msgChan chan *message.Message, msgChan1 chan *message.Message2)
	Write(message *message.Message) error
	Write1(message *message.Message2) (bool, error)
	Write2(message *message.Message2) error
	WriteRemoval(message *message.Message2) error
	DomainID() uint8
	CheckFeeClaim() bool
	GetFeeClaim(msg *message.Message) error
}

type Relayer

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

func NewRelayer

func NewRelayer(chains []RelayedChain, metrics Metrics, messageProcessors ...message.MessageProcessor) *Relayer

func (*Relayer) Start

func (r *Relayer) Start(ctx context.Context, sysErr chan error)

Start function starts the relayer. Relayer routine is starting all the chains and passing them with a channel that accepts unified cross chain message format

Directories

Path Synopsis
Package mock_relayer is a generated GoMock package.
Package mock_relayer is a generated GoMock package.

Jump to

Keyboard shortcuts

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