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: 5 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 CreateCertainTempFile

func CreateCertainTempFile(dir, suffix string) (*os.File, error)

CreateCertainTempFile 创建确定的临时文件(明确目录)

@param dir
@param suffix
@return *os.File
@return error

func CreateTempFile

func CreateTempFile(suffix string) (*os.File, error)

CreateTempFile 创建临时文件

@param suffix
@return *os.File
@return error

func DeepCopy

func DeepCopy(dst, src interface{}) error

DeepCopy 结构体深拷贝

@param dst
@param src
@return error

func FileIsExist

func FileIsExist(path string) (bool, error)

FileIsExist 检测文件是否存在

@param path
@return bool
@return error

func UnsupportVersion

func UnsupportVersion(version common.Version) string

UnsupportVersion 不支持的版本打印

@param version
@return string

func WriteTempFile

func WriteTempFile(content []byte, suffix string) (*os.File, error)

WriteTempFile 内容写入到临时文件中

@param content
@param suffix
@return *os.File
@return error

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