system

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Chain                = "okbchain"
	TestnetPrefix        = "okbchaintest"
	AppName              = "OKBChain"
	Server               = Chain + "d"
	Client               = Chain + "cli"
	ServerHome           = "$HOME/." + Server
	ClientHome           = "$HOME/." + Client
	ServerLog            = Server + ".log"
	EnvPrefix            = "OKBCHAIN"
	CoinType      uint32 = 60
	Currency             = "okb"
)
View Source
const ChainName = "OKBC"
View Source
const (
	FlagEnableGid = "enable-gid"
)
View Source
const (
	FlagTreeEnableAsyncCommit = "tree-enable-async-commit"
)

Variables

View Source
var (
	EnableGid = false
)

Functions

func GetIpAddr

func GetIpAddr(appendPid bool) (res string, err error)

func Getpid

func Getpid() int

func Sleep

func Sleep(seconds time.Duration)

Types

type GoRoutineID

type GoRoutineID int
var GoRId GoRoutineID = 0

func (GoRoutineID) String

func (base GoRoutineID) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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