relay

package
v0.28.8 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: AGPL-3.0 Imports: 10 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RelayNetwork

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

func NewRelayNetwork

func NewRelayNetwork(
	originNetwork network.Network,
	destinationNetwork network.Network,
	logger zerolog.Logger,
	channels map[channels.Channel]channels.Channel,
) *RelayNetwork

func (*RelayNetwork) Done

func (r *RelayNetwork) Done() <-chan struct{}

func (*RelayNetwork) Ready

func (r *RelayNetwork) Ready() <-chan struct{}

func (*RelayNetwork) Register

func (r *RelayNetwork) Register(channel channels.Channel, messageProcessor network.MessageProcessor) (network.Conduit, error)

func (*RelayNetwork) RegisterBlobService

func (r *RelayNetwork) RegisterBlobService(channel channels.Channel, store datastore.Batching, opts ...network.BlobServiceOption) (network.BlobService, error)

func (*RelayNetwork) RegisterPingService

func (r *RelayNetwork) RegisterPingService(pid protocol.ID, provider network.PingInfoProvider) (network.PingService, error)

func (*RelayNetwork) Start

type Relayer

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

func NewRelayer

func NewRelayer(destinationNetwork network.Network, channel channels.Channel, processor network.MessageProcessor) (*Relayer, error)

func (*Relayer) Close

func (r *Relayer) Close() error

func (*Relayer) Process

func (r *Relayer) Process(channel channels.Channel, originID flow.Identifier, event interface{}) error

Jump to

Keyboard shortcuts

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