union_adapter

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnionAdapter

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

UnionAdapter represents the necessary data for sync tx from bitxhub

func New

func New(peerMgr peermgr.PeerManager, bxh adapt.Adapt, logger logrus.FieldLogger) (*UnionAdapter, error)

func (*UnionAdapter) GetServiceIDList

func (b *UnionAdapter) GetServiceIDList() ([]string, error)

func (*UnionAdapter) ID

func (b *UnionAdapter) ID() string

func (*UnionAdapter) MonitorIBTP

func (b *UnionAdapter) MonitorIBTP() chan *pb.IBTP

func (*UnionAdapter) MonitorUpdatedMeta

func (b *UnionAdapter) MonitorUpdatedMeta() chan *[]byte

func (*UnionAdapter) Name

func (b *UnionAdapter) Name() string

func (*UnionAdapter) QueryIBTP

func (b *UnionAdapter) QueryIBTP(id string, isReq bool) (*pb.IBTP, error)

func (*UnionAdapter) QueryInterchain

func (b *UnionAdapter) QueryInterchain(fullServiceId string) (*pb.Interchain, error)

func (*UnionAdapter) SendIBTP

func (b *UnionAdapter) SendIBTP(ibtp *pb.IBTP) error

func (*UnionAdapter) SendUpdatedMeta

func (b *UnionAdapter) SendUpdatedMeta(byte []byte) error

func (*UnionAdapter) Start

func (u *UnionAdapter) Start() error

func (*UnionAdapter) Stop

func (b *UnionAdapter) Stop() error

Jump to

Keyboard shortcuts

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