Documentation ¶
Index ¶
- type RestRequest
- func (r *RestRequest) CrossChainCancel(txRequest *cross_chain.CrossChainCancelRequest, timeout int64, ...) (res *cross_chain.CrossChainCancelResponse, err error)
- func (r *RestRequest) CrossChainConfirm(txRequest *cross_chain.CrossChainConfirmRequest, timeout int64, ...) (res *cross_chain.CrossChainConfirmResponse, err error)
- func (r *RestRequest) CrossChainTry(txRequest *cross_chain.CrossChainTryRequest, timeout int64, ...) (res *cross_chain.CrossChainTryResponse, err error)
- func (r *RestRequest) IsCrossChainSuccess(txRequest *cross_chain.IsCrossChainSuccessRequest, timeout int64, ...) (res *cross_chain.IsCrossChainSuccessResponse, err error)
- func (r *RestRequest) PingPong(timeout int64, destGatewayInfo *common.GatewayInfo) (res *cross_chain.PingPongResponse, err error)
- func (r *RestRequest) VerifyTx(txVerifyInterface *common.TxVerifyInterface, txProve string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RestRequest ¶
type RestRequest struct {
// contains filtered or unexported fields
}
RestRequest rest请求结构体
func NewRestRequest ¶
func NewRestRequest(log *zap.SugaredLogger) *RestRequest
NewRestRequest 新建rest请求
func (*RestRequest) CrossChainCancel ¶
func (r *RestRequest) CrossChainCancel( txRequest *cross_chain.CrossChainCancelRequest, timeout int64, destGatewayInfo *common.GatewayInfo) (res *cross_chain.CrossChainCancelResponse, err error)
CrossChainCancel 回滚跨链
@receiver r @param txRequest @param timeout @param destGatewayInfo @return res @return err
func (*RestRequest) CrossChainConfirm ¶
func (r *RestRequest) CrossChainConfirm( txRequest *cross_chain.CrossChainConfirmRequest, timeout int64, destGatewayInfo *common.GatewayInfo) (res *cross_chain.CrossChainConfirmResponse, err error)
CrossChainConfirm 跨链提交
@receiver r @param txRequest @param timeout @param destGatewayInfo @return res @return err
func (*RestRequest) CrossChainTry ¶
func (r *RestRequest) CrossChainTry( txRequest *cross_chain.CrossChainTryRequest, timeout int64, destGatewayInfo *common.GatewayInfo) (res *cross_chain.CrossChainTryResponse, err error)
CrossChainTry 跨链试运行
@receiver r @param txRequest @param timeout @param destGatewayInfo @return res @return err
func (*RestRequest) IsCrossChainSuccess ¶
func (r *RestRequest) IsCrossChainSuccess( txRequest *cross_chain.IsCrossChainSuccessRequest, timeout int64, destGatewayInfo *common.GatewayInfo) (res *cross_chain.IsCrossChainSuccessResponse, err error)
IsCrossChainSuccess 询问跨链是否成功
@receiver r @param txRequest @param timeout @param destGatewayInfo @return res @return err
func (*RestRequest) PingPong ¶
func (r *RestRequest) PingPong(timeout int64, destGatewayInfo *common.GatewayInfo) (res *cross_chain.PingPongResponse, err error)
PingPong 心跳
@receiver r @param timeout @param destGatewayInfo @return res @return err
func (*RestRequest) VerifyTx ¶
func (r *RestRequest) VerifyTx(txVerifyInterface *common.TxVerifyInterface, txProve string) ([]byte, error)
VerifyTx 交易验证
@receiver r @param txVerifyInterface @param txProve @return []byte @return error
Click to show internal directories.
Click to hide internal directories.