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,23 @@
package monitor
import (
"os"
"github.com/influxdata/influxdb/monitor/diagnostics"
)
// network captures network diagnostics.
type network struct{}
func (n *network) Diagnostics() (*diagnostics.Diagnostics, error) {
h, err := os.Hostname()
if err != nil {
return nil, err
}
d := map[string]interface{}{
"hostname": h,
}
return diagnostics.RowFromMap(d), nil
}