mirror of
https://github.com/nikdoof/vsphere-influxdb-go.git
synced 2025-12-19 05:29:21 +00:00
add vendoring with go dep
This commit is contained in:
21
vendor/github.com/influxdata/influxdb/monitor/go_runtime.go
generated
vendored
Normal file
21
vendor/github.com/influxdata/influxdb/monitor/go_runtime.go
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
package monitor
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
|
||||
"github.com/influxdata/influxdb/monitor/diagnostics"
|
||||
)
|
||||
|
||||
// goRuntime captures Go runtime diagnostics.
|
||||
type goRuntime struct{}
|
||||
|
||||
func (g *goRuntime) Diagnostics() (*diagnostics.Diagnostics, error) {
|
||||
d := map[string]interface{}{
|
||||
"GOARCH": runtime.GOARCH,
|
||||
"GOOS": runtime.GOOS,
|
||||
"GOMAXPROCS": runtime.GOMAXPROCS(-1),
|
||||
"version": runtime.Version(),
|
||||
}
|
||||
|
||||
return diagnostics.RowFromMap(d), nil
|
||||
}
|
||||
Reference in New Issue
Block a user