restrequest

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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

BeginCrossChain 开始跨链

@receiver r
@param req
@return *relay_chain.BeginCrossChainResponse
@return error

func (*RestRequest) InitSpvContract

InitSpvContract 初始化spv合约

@receiver r
@param req
@return *relay_chain.InitContractResponse
@return error

func (*RestRequest) SyncBlockHeader

SyncBlockHeader 同步区块头

@receiver r
@param req
@return *relay_chain.SyncBlockHeaderResponse
@return error

func (*RestRequest) UpdateSpvContract

UpdateSpvContract 更新spv合约

@receiver r
@param req
@return *relay_chain.UpdateContractResponse
@return error

Jump to

Keyboard shortcuts

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