golint monitor

pull/10344/head
bvwells 2018-10-08 20:53:29 +01:00
parent 13e3dd5828
commit faf153d233
2 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,7 @@ type Diagnostics struct {
Rows [][]interface{}
}
// NewDiagnostic initialises a new Diagnostics with the specified columns.
// NewDiagnostics initialises a new Diagnostics with the specified columns.
func NewDiagnostics(columns []string) *Diagnostics {
return &Diagnostics{
Columns: columns,

View File

@ -129,8 +129,10 @@ func (m *Monitor) Open() error {
return nil
}
// Enabled returns true if any underlying Config is Enabled.
func (m *Monitor) Enabled() bool { return m.storeEnabled }
// WritePoints writes the points the monitor gathers.
func (m *Monitor) WritePoints(p models.Points) error {
if !m.storeEnabled {
return nil