relay

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// RegisteredClients stores function that returns instace which satisfies chain.IClient interface
	// This function panics if any error occurs while initialization
	RegisteredClients = map[string]chain.ClientFunc{}
	// RegisteredRetryChannels stores channels for each chain to receive and handle packets that needs to be
	// retried.
	RegisteredRetryChannels = map[string]chan *chain.Packet{}
	// RegisteredCompleteChannels stores channel for each chain to receive and handle packets that has successfully
	// been stored in db-service.
	RegisteredCompleteChannels = map[string]chan<- *chain.Packet{}
)

Each chain registers required instance into these maps in its init() function. Gateway to chain specific logic.

Functions

func StartRelay

func StartRelay(ctx context.Context, cfg *config.Config, metrics *metrics.PrometheusMetrics)

StartRelay setups all the necessary environment for running the relay and starts it.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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