app

package
v4.2.514+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

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.

Jump to

Keyboard shortcuts

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