router

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterchainRouter

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

func New

func New(logger logrus.FieldLogger, repo *repo.Repo, ledger *ledger.Ledger, peerMgr peermgr.PeerManager, quorum uint64) (*InterchainRouter, error)

func (*InterchainRouter) AddPier

func (router *InterchainRouter) AddPier(pierID string) (chan *pb.InterchainTxWrappers, error)

func (*InterchainRouter) GetBlockHeader

func (router *InterchainRouter) GetBlockHeader(begin, end uint64, ch chan<- *pb.BlockHeader) error

func (*InterchainRouter) GetInterchainTxWrappers added in v1.0.1

func (router *InterchainRouter) GetInterchainTxWrappers(appchainID string, begin, end uint64, ch chan<- *pb.InterchainTxWrappers) error

func (*InterchainRouter) PutBlockAndMeta

func (router *InterchainRouter) PutBlockAndMeta(block *pb.Block, meta *pb.InterchainMeta)

func (*InterchainRouter) RemovePier

func (router *InterchainRouter) RemovePier(pierID string)

func (*InterchainRouter) Start

func (router *InterchainRouter) Start() error

func (*InterchainRouter) Stop

func (router *InterchainRouter) Stop() error

type Router

type Router interface {
	// Start starts the router module
	Start() error

	// Stop
	Stop() error

	// PutBlock
	PutBlockAndMeta(*pb.Block, *pb.InterchainMeta)

	// AddPier
	AddPier(pierID string) (chan *pb.InterchainTxWrappers, error)

	// RemovePier
	RemovePier(pierID string)

	// GetBlockHeader
	GetBlockHeader(begin, end uint64, ch chan<- *pb.BlockHeader) error

	GetInterchainTxWrappers(appchainID string, begin, end uint64, ch chan<- *pb.InterchainTxWrappers) error
}

Jump to

Keyboard shortcuts

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