grpcrequest

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: 13 Imported by: 0

Documentation

Index

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

BeginCrossChain 调用跨链接口

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

func (*GrpcRequest) InitSpvContract

InitSpvContract 初始化spv合约

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

func (*GrpcRequest) SyncBlockHeader

SyncBlockHeader 同步区块头

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

func (*GrpcRequest) UpdateSpvContract

UpdateSpvContract 更新spv合约

@receiver g
@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