Documentation
¶
Index ¶
Constants ¶
View Source
const ( RunningDev RunningMode = "dev" RunningTest RunningMode = "test" RunningMain RunningMode = "prod" // Orphanage is the default farmid where nodes are registered // if no farmid were specified on the kernel command line OrphanageDev pkg.FarmID = 0 OrphanageTest pkg.FarmID = 0 OrphanageMain pkg.FarmID = 0 )
Possible running mode of a node
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct { RunningMode RunningMode BcdbURL string BcdbPassword string FarmerID pkg.FarmID Orphan bool }
Environment holds information about running environment of a node it defines the different constant based on the running mode (dev, test, prod)
type RunningMode ¶
type RunningMode string
RunningMode type
func (RunningMode) String ¶
func (r RunningMode) String() string
Click to show internal directories.
Click to hide internal directories.