Documentation ¶
Index ¶
- Variables
- func GetCurrentGlobalState() string
- func GetIDPath(index string) string
- func GetRealPath(index string) string
- func InitDB()
- func InitializePaths() map[string]*Path
- func Initializer() error
- func PrintState(s string)
- func SetTime()
- type GlobalState
- type GlobalStateMachine
- type InMemoryPath
- type ModulesConfig
- type Path
- type PathString
- type Paths
- type Time
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *datastore.Repo
View Source
var EPOCH0 int64 = 0
View Source
var EPOCH1 int64 = 7889400000000000
View Source
var GS map[GlobalState]string = map[GlobalState]string{ STATE_IDLE: "idle", STATE_INITIALIZING: "initializing", STATE_INITIALIZED: "initialized", STATE_ERROR: "error", STATE_READY: "ready", STATE_CREATING_GENESIS: "create_genesis", STATE_GENESIS_DONE: "genesis_done", }
View Source
var PathRepo map[string]*Path
View Source
var SinceStarted time.Duration
View Source
var StartedAt time.Time
Functions ¶
func GetCurrentGlobalState ¶
func GetCurrentGlobalState() string
func GetRealPath ¶
func InitializePaths ¶
func Initializer ¶
func Initializer() error
func PrintState ¶
func PrintState(s string)
Types ¶
type GlobalState ¶
type GlobalState uint32
const ( STATE_IDLE GlobalState = iota STATE_INITIALIZING STATE_INITIALIZED STATE_ERROR STATE_READY STATE_CREATING_GENESIS STATE_GENESIS_DONE )
type GlobalStateMachine ¶
var InitState *GlobalStateMachine
func NewGlobalStateMachine ¶
func NewGlobalStateMachine() *GlobalStateMachine
type InMemoryPath ¶
type InMemoryPath struct { Paths // contains filtered or unexported fields }
func (*InMemoryPath) Exists ¶
func (p *InMemoryPath) Exists(realPath string) bool
type ModulesConfig ¶
type ModulesConfig struct {
// contains filtered or unexported fields
}
func ReadModulesConfig ¶
type PathString ¶
type PathString string
const ( BASE_PATH PathString = "data" KEY_PATH PathString = ".keys" DB_PATH PathString = "db" WALLET_PATH PathString = "wal" LIVENET_PATH PathString = "live" TESTNET_PATH PathString = "test" LOCALNET_PATH PathString = "local" TMP_PATH PathString = ".tmp" CACHE_PATH PathString = ".cache" LOG_PATH PathString = "logs" )
Click to show internal directories.
Click to hide internal directories.