add vendoring with go dep

This commit is contained in:
Adrian Todorov
2017-10-25 20:52:40 +00:00
parent 704f4d20d1
commit a59409f16b
1627 changed files with 489673 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
package monitor
import "github.com/influxdata/influxdb/monitor/diagnostics"
// build holds information of the build of the current executable.
type build struct {
Version string
Commit string
Branch string
Time string
}
func (b *build) Diagnostics() (*diagnostics.Diagnostics, error) {
d := map[string]interface{}{
"Version": b.Version,
"Commit": b.Commit,
"Branch": b.Branch,
"Build Time": b.Time,
}
return diagnostics.RowFromMap(d), nil
}