Documentation ¶
Index ¶
- type RestRequest
- func (r *RestRequest) BeginCrossChain(req *relay_chain.BeginCrossChainRequest) (*relay_chain.BeginCrossChainResponse, error)
- func (r *RestRequest) InitSpvContract(req *relay_chain.InitContractRequest) (*relay_chain.InitContractResponse, error)
- func (r *RestRequest) SyncBlockHeader(req *relay_chain.SyncBlockHeaderRequest) (*relay_chain.SyncBlockHeaderResponse, error)
- func (r *RestRequest) UpdateSpvContract(req *relay_chain.UpdateContractRequest) (*relay_chain.UpdateContractResponse, 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 restrequest新建
@param log @return *RestRequest
func (*RestRequest) BeginCrossChain ¶
func (r *RestRequest) BeginCrossChain( req *relay_chain.BeginCrossChainRequest) (*relay_chain.BeginCrossChainResponse, error)
BeginCrossChain 开始跨链
@receiver r @param req @return *relay_chain.BeginCrossChainResponse @return error
func (*RestRequest) InitSpvContract ¶
func (r *RestRequest) InitSpvContract( req *relay_chain.InitContractRequest) (*relay_chain.InitContractResponse, error)
InitSpvContract 初始化spv合约
@receiver r @param req @return *relay_chain.InitContractResponse @return error
func (*RestRequest) SyncBlockHeader ¶
func (r *RestRequest) SyncBlockHeader( req *relay_chain.SyncBlockHeaderRequest) (*relay_chain.SyncBlockHeaderResponse, error)
SyncBlockHeader 同步区块头
@receiver r @param req @return *relay_chain.SyncBlockHeaderResponse @return error
func (*RestRequest) UpdateSpvContract ¶
func (r *RestRequest) UpdateSpvContract( req *relay_chain.UpdateContractRequest) (*relay_chain.UpdateContractResponse, error)
UpdateSpvContract 更新spv合约
@receiver r @param req @return *relay_chain.UpdateContractResponse @return error
Click to show internal directories.
Click to hide internal directories.