Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.