request

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRequestManager

func InitRequestManager() error

InitRequestManager 初始化请求管理模块

@return error

func InitRequestManagerMock

func InitRequestManagerMock() error

InitRequestManagerMock 初始化request模块

@return error

Types

type Request

type Request interface {
	BeginCrossChain(req *relay_chain.BeginCrossChainRequest) (*relay_chain.BeginCrossChainResponse, error)
}

Request 请求模块接口

type RequestManager

type RequestManager struct {
	// contains filtered or unexported fields
}

RequestManager 请求管理模块结构体

var RequestV1 *RequestManager

RequestV1 请求管理模块对象

func (*RequestManager) BeginCrossChain

func (r *RequestManager) BeginCrossChain(eventInfo *event.EventInfo)

BeginCrossChain 开始跨链

@receiver r
@param eventInfo

如果要保存跨链信息的话,在这个函数里面实现就可以,可以根据结果写入数据库或者文件什么的都可以

func (*RequestManager) GatewayRegister

func (r *RequestManager) GatewayRegister(objectPath string) error

GatewayRegister 获取gateway注册信息

@receiver r
@param objectPath
@return error

func (*RequestManager) GatewayUpdate

func (r *RequestManager) GatewayUpdate(objectPath string) error

GatewayUpdate 获取gateway更新信息

@receiver r
@param objectPath
@return error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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