configs

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//
	TimeFormat = "2006-01-02 15:04:05"
	// the time to wait for the event, in seconds
	TimeToWaitEvent = time.Duration(time.Second * 12)
	// Default config file
	DefaultConfigFile = "./conf.yaml"
	//
	DefaultWorkspace = "/"
	//
	DefaultServicePort = 15001
	//
	DefaultRpcAddr1 = "wss://testnet-rpc0.cess.cloud/ws/"
	DefaultRpcAddr2 = "wss://testnet-rpc1.cess.cloud/ws/"
	//
	DefaultBootNodeAddr = "_dnsaddr.boot-kldr-testnet.cess.cloud"
)
View Source
const (
	DbDir  = "db"
	LogDir = "log"
)
View Source
const (
	HiBlack = iota + 90
	HiRed
	HiGreen
	HiYellow
	HiBlue
	HiPurple
	HiCyan
	HiWhite
)
View Source
const (
	OkPrompt    = "OK"
	WarnPrompt  = "!!"
	ErrPrompt   = "XX"
	InputPrompt = ">>"
	TipPrompt   = "++"
)
View Source
const (
	// Name is the name of the program
	Name = "bucket"
	// version
	Version = "v0.6.0"
	// Description is the description of the program
	Description = "Storage node implementation in CESS networks"
	// NameSpace is the cached namespace
	NameSpaces = Name
)

Variables

This section is empty.

Functions

func Err added in v0.6.0

func Err(msg string)

func Input added in v0.6.0

func Input(msg string)

func Ok added in v0.6.0

func Ok(msg string)

func RunOnLinuxSystem added in v0.6.0

func RunOnLinuxSystem() bool

func SysInit added in v0.6.0

func SysInit()

system init

func Tip added in v0.6.0

func Tip(msg string)

func Warn added in v0.6.0

func Warn(msg string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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