version_mgr

package
v0.0.0-...-12b7791 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const NodeVersion = "3.1.20"

Variables

This section is empty.

Functions

func Init

func Init() error

func Init_

func Init_(name string) error

func RestartNode

func RestartNode() error

Types

type VersionMgr

type VersionMgr struct {
	CurrentVersion      string
	AutoUpdateFiledTime int
	LastFailedTime      int64
}

func GetInstance

func GetInstance() *VersionMgr

func GetInstance_

func GetInstance_(name string) *VersionMgr

func (*VersionMgr) CheckUpdate

func (v *VersionMgr) CheckUpdate()

func (*VersionMgr) GetVersion

func (v *VersionMgr) GetVersion() string

func (*VersionMgr) IsLatestVersion

func (v *VersionMgr) IsLatestVersion() (isLatestVersion bool, latestVersion string, downloadHost string, err error)

Jump to

Keyboard shortcuts

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