Documentation
¶
Index ¶
- Constants
- type Adapt
- type AppchainAdapter
- func (a *AppchainAdapter) GetServiceIDList() ([]string, error)
- func (a *AppchainAdapter) MonitorIBTP() chan *pb.IBTP
- func (a *AppchainAdapter) Name() (string, error)
- func (a *AppchainAdapter) QueryIBTP(id string, isReq bool) (*pb.IBTP, error)
- func (a *AppchainAdapter) QueryInterchain(serviceID string) (*pb.Interchain, error)
- func (a *AppchainAdapter) SendIBTP(ibtp *pb.IBTP) error
- func (a *AppchainAdapter) Start() error
- func (a *AppchainAdapter) Stop() error
- type SendIbtpError
Constants ¶
View Source
const ( Success = iota ValidationRules_Unregister Proof_Invalid Index_Wrong Other_Error )
error type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapt ¶
type Adapt interface {
// Start starts adapt
Start() error
// Stop stops adapt
Stop() error
// Name get adapt name
Name() (string, error)
// MonitorIBTP listen on ibtp from dest chain
MonitorIBTP() chan *pb.IBTP
// QueryIBTP query ibtp by id and type, contain multi_sign
QueryIBTP(id string, isReq bool) (*pb.IBTP, error)
// SendIBTP check and send ibtp to dest chain
SendIBTP(ibtp *pb.IBTP) error
// GetServiceIDList getServiceIDList from dest chain
GetServiceIDList() ([]string, error)
// QueryInterchain queryInterchain from dest chain
QueryInterchain(serviceID string) (*pb.Interchain, error)
}
func NewAppchainAdapter ¶
type AppchainAdapter ¶
type AppchainAdapter struct {
// contains filtered or unexported fields
}
func (*AppchainAdapter) GetServiceIDList ¶
func (a *AppchainAdapter) GetServiceIDList() ([]string, error)
func (*AppchainAdapter) MonitorIBTP ¶
func (a *AppchainAdapter) MonitorIBTP() chan *pb.IBTP
func (*AppchainAdapter) Name ¶
func (a *AppchainAdapter) Name() (string, error)
func (*AppchainAdapter) QueryInterchain ¶
func (a *AppchainAdapter) QueryInterchain(serviceID string) (*pb.Interchain, error)
func (*AppchainAdapter) Start ¶
func (a *AppchainAdapter) Start() error
func (*AppchainAdapter) Stop ¶
func (a *AppchainAdapter) Stop() error
type SendIbtpError ¶
func (*SendIbtpError) Error ¶
func (e *SendIbtpError) Error() string
func (*SendIbtpError) NeedRetry ¶
func (e *SendIbtpError) NeedRetry() bool
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mock_adapt is a generated GoMock package.
|
Package mock_adapt is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.