Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FlagHost = &cli.StringFlag{ Name: "host", EnvVars: []string{"OHWM_HOST"}, Value: "127.0.0.1", Usage: "open hardware monitor host [OSHW_HOST]", }
FlagHost flag for host
View Source
var FlagInterface = &cli.StringFlag{ Name: "http", EnvVars: []string{"OHWM_HTTP"}, Value: ":9200", Usage: "interface to serve http requests", }
FlagInterface flag for host
View Source
var FlagPath = &cli.StringFlag{ Name: "path", EnvVars: []string{"OHWM_PATH"}, Value: "/data.json", Usage: "open hardware monitor path (ie /data.json)", }
FlagPath flag for path url
View Source
var FlagPort = &cli.IntFlag{ Name: "port", EnvVars: []string{"OHWM_PORT"}, Value: 8085, Usage: "open hardware port [OSHW_PORT]", }
FlagPort flag for host
View Source
var FlagScheme = &cli.StringFlag{ Name: "scheme", EnvVars: []string{"OHWM_SCHEME"}, Value: "http", Usage: "open hardware monitor scheme (http/https)", }
FlagScheme flag for host
Functions ¶
This section is empty.
Types ¶
type App ¶
App context
func (*App) ActionMetrics ¶
ActionMetrics serves http
func (*App) ActionPrint ¶
ActionPrint prints api result
func (*App) HandleMetrics ¶
func (a *App) HandleMetrics(resp http.ResponseWriter, req *http.Request)
HandleMetrics handler
Click to show internal directories.
Click to hide internal directories.