Documentation ¶
Index ¶
- Variables
- func CreateCertainTempFile(dir, suffix string) (*os.File, error)
- func CreateTempFile(suffix string) (*os.File, error)
- func DeepCopy(dst, src interface{}) error
- func FileIsExist(path string) (bool, error)
- func UnsupportVersion(version common.Version) string
- func WriteTempFile(content []byte, suffix string) (*os.File, error)
- func WriteTempYmlFile(data interface{}) (*os.File, error)
- type ChainConfigOperate
- type EventOperate
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 ¶
CreateCertainTempFile 创建确定的临时文件(明确目录)
@param dir @param suffix @return *os.File @return error
func DeepCopy ¶
func DeepCopy(dst, src interface{}) error
DeepCopy 结构体深拷贝
@param dst @param src @return error
func WriteTempFile ¶
WriteTempFile 内容写入到临时文件中
@param content @param suffix @return *os.File @return error
Types ¶
type ChainConfigOperate ¶
ChainConfigOperate event更新结构体
Click to show internal directories.
Click to hide internal directories.