relayer

package
v1.0.66 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 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)
	Write(message *message.Message) error
	DomainID() uint8
}

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