setup

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultValueSignal = "d"
	EmptyLine          = ""
	Positive           = "yes"
	Negative           = "no"
	Separator          = ","
)
View Source
const (
	ClearData = "ClearData"
	IsBp      = "IsBp"
	YesOrNo   = "YesOrNo"
	NodeName  = "NodeName"
	ChainId   = "ChainId"
	BpName    = "BpName"
	PriKey    = "PriKey"
	SeedList  = "SeedList"
	LogLevel  = "LogLevel"
	DataDir   = "DataDir"

	StartNode = "StartNode"
)

read type

Variables

View Source
var (
	InitNewConfig  = true
	NodeIsBp       = false
	StartNodeNow   = false
	ClearLocalData = false
)

Functions

func ReadCmdLine

func ReadCmdLine(displayInfo string) string

Types

type ReadInfoStruct

type ReadInfoStruct struct {
	// contains filtered or unexported fields
}

type SetupAdmin

type SetupAdmin struct {
	// contains filtered or unexported fields
}

func (*SetupAdmin) Cfg

func (admin *SetupAdmin) Cfg() node.Config

func (*SetupAdmin) Init

func (admin *SetupAdmin) Init()

func (*SetupAdmin) ReadAndProcess

func (admin *SetupAdmin) ReadAndProcess(readType, displayInfo string)

func (*SetupAdmin) ReadAndValidate

func (admin *SetupAdmin) ReadAndValidate(readType, displayInfo string) (readContent string)

func (*SetupAdmin) WriteConfig

func (admin *SetupAdmin) WriteConfig() error

Jump to

Keyboard shortcuts

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