utils

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EventChan chan *EventOperate

EventChan event更新通道

View Source
var UpdateChainConfigChan chan *ChainConfigOperate

UpdateChainConfigChan chainconfig 更新通道

Functions

func DeepCopy

func DeepCopy(dst, src interface{}) error

DeepCopy 结构体深拷贝

@param dst
@param src
@return error

func ParseHeaderKey

func ParseHeaderKey(chainRid string) []byte

ParseHeaderKey 生成存储同步区块头的key

@receiver c
@param chainRid
@return []byte

func UnsupportVersion

func UnsupportVersion(version common.Version) string

UnsupportVersion 不支持的版本打印

@param version
@return string

Types

type ChainConfigOperate

type ChainConfigOperate struct {
	ChainRid string
	Operate  common.Operate
}

ChainConfigOperate event更新结构体

type EventOperate

type EventOperate struct {
	CrossChainEventID string
	ChainRid          string
	ContractName      string
	Operate           common.Operate
}

EventOperate event更新结构体

Jump to

Keyboard shortcuts

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