Documentation
¶
Index ¶
- Variables
- func CreateBlockchain(config *configuration.Config) (bc *blockchain.Blockchain, err error)
- func CreateDataCore(config *configuration.Config, kyberENV string, bc *blockchain.Blockchain) (*data.ReserveData, *core.ReserveCore)
- func Execute()
- func GetConfigFromENV(kyberENV string) *configuration.Config
- func InitInterface()
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{
Use: "./cmd",
Short: "entry point to the application, required KYBER_ENV (default to dev) and KYBER_EXCHANGES as environment variables. if KYBER_EXCHANGE is not set, the core will be run without centralize exchanges",
Example: "KYBER_ENV=dev KYBER_EXCHANGES=binance ./cmd command [flags]",
}
RootCmd represents the base command when called without any subcommands
Functions ¶
func CreateBlockchain ¶
func CreateBlockchain(config *configuration.Config) (bc *blockchain.Blockchain, err error)
func CreateDataCore ¶
func CreateDataCore(config *configuration.Config, kyberENV string, bc *blockchain.Blockchain) (*data.ReserveData, *core.ReserveCore)
func Execute ¶
func Execute()
Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetConfigFromENV ¶
func GetConfigFromENV(kyberENV string) *configuration.Config
GetConfigFromENV: From ENV variable and overwriting instruction, build the config
func InitInterface ¶
func InitInterface()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.