Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProbeTypeLiveness = "liveness" ProbeTypeReadiness = "readiness" )
Variables ¶
View Source
var ( ProbeCmd = &cobra.Command{ Use: "probe", Short: "probe alameda datahub server", Long: "", Run: func(cmd *cobra.Command, args []string) { initConfig() initLogger() setLoggerScopesWithConfig(*config.Log) startProbing() }, } )
View Source
var RootCmd = &cobra.Command{
Use: "datahub",
Short: "alameda datahub",
Long: "",
}
View Source
var ( RunCmd = &cobra.Command{ Use: "run", Short: "start alameda datahub server", Long: "", Run: func(cmd *cobra.Command, args []string) { var ( err error server *datahub.Server ) app.PrintSoftwareVer() initConfig() initLogger() initEventMgt() initKeycode() initNotifier() setLoggerScopesWithConfig(*config.Log) displayConfig() server, err = datahub.NewServer(config) if err != nil { panic(err) } server.InitInfluxdbDatabase() if err = server.Run(); err != nil { server.Stop() panic(err) } }, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.