Documentation ¶
Index ¶
- type GrpcRequest
- func (g *GrpcRequest) BeginCrossChain(req *relay_chain.BeginCrossChainRequest) (*relay_chain.BeginCrossChainResponse, error)
- func (g *GrpcRequest) InitSpvContract(req *relay_chain.InitContractRequest) (*relay_chain.InitContractResponse, error)
- func (g *GrpcRequest) SyncBlockHeader(req *relay_chain.SyncBlockHeaderRequest) (*relay_chain.SyncBlockHeaderResponse, error)
- func (g *GrpcRequest) 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 GrpcRequest ¶
type GrpcRequest struct {
// contains filtered or unexported fields
}
GrpcRequest grpc请求结构体
func NewGrpcRequest ¶
func NewGrpcRequest(log *zap.SugaredLogger) *GrpcRequest
NewGrpcRequest 初始化grpc请求
@param log @return *GrpcRequest
func (*GrpcRequest) BeginCrossChain ¶
func (g *GrpcRequest) BeginCrossChain( req *relay_chain.BeginCrossChainRequest) (*relay_chain.BeginCrossChainResponse, error)
BeginCrossChain 调用跨链接口
@receiver g @param req @return *relay_chain.BeginCrossChainResponse @return error
func (*GrpcRequest) InitSpvContract ¶
func (g *GrpcRequest) InitSpvContract(req *relay_chain.InitContractRequest) (*relay_chain.InitContractResponse, error)
InitSpvContract 初始化spv合约
@receiver g @param req @return *relay_chain.InitContractResponse @return error
func (*GrpcRequest) SyncBlockHeader ¶
func (g *GrpcRequest) SyncBlockHeader( req *relay_chain.SyncBlockHeaderRequest) (*relay_chain.SyncBlockHeaderResponse, error)
SyncBlockHeader 同步区块头
@receiver g @param req @return *relay_chain.SyncBlockHeaderResponse @return error
func (*GrpcRequest) UpdateSpvContract ¶
func (g *GrpcRequest) UpdateSpvContract( req *relay_chain.UpdateContractRequest) (*relay_chain.UpdateContractResponse, error)
UpdateSpvContract 更新spv合约
@receiver g @param req @return *relay_chain.UpdateContractResponse @return error
Click to show internal directories.
Click to hide internal directories.