direct_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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoPool

func NewGoPool(size int) *pool

Types

type DirectAdapter

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

func New

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

func (*DirectAdapter) GetServiceIDList

func (d *DirectAdapter) GetServiceIDList() ([]string, error)

func (*DirectAdapter) ID

func (d *DirectAdapter) ID() string

func (*DirectAdapter) MonitorIBTP

func (d *DirectAdapter) MonitorIBTP() chan *pb.IBTP

func (*DirectAdapter) MonitorUpdatedMeta

func (d *DirectAdapter) MonitorUpdatedMeta() chan *[]byte

func (*DirectAdapter) Name

func (d *DirectAdapter) Name() string

func (*DirectAdapter) QueryIBTP

func (d *DirectAdapter) QueryIBTP(id string, isReq bool) (*pb.IBTP, error)

QueryIBTP query ibtp from another pier

func (*DirectAdapter) QueryInterchain

func (d *DirectAdapter) QueryInterchain(serviceID string) (*pb.Interchain, error)

func (*DirectAdapter) SendIBTP

func (d *DirectAdapter) SendIBTP(ibtp *pb.IBTP) error

SendIBTP send ibtp to another pier

func (*DirectAdapter) SendUpdatedMeta

func (d *DirectAdapter) SendUpdatedMeta(byte []byte) error

func (*DirectAdapter) Start

func (d *DirectAdapter) Start() error

func (*DirectAdapter) Stop

func (d *DirectAdapter) Stop() error

type MyTree

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

func (*MyTree) Less

func (m *MyTree) Less(item btree.Item) bool

type Pool

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

func NewPool

func NewPool() *Pool

Jump to

Keyboard shortcuts

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