fix linting

This commit is contained in:
Daniel Chote 2019-10-15 11:42:24 -04:00
parent ae54d666ca
commit 6a305eaa76
2 changed files with 4 additions and 2 deletions

View File

@ -6,18 +6,20 @@ import (
"strconv"
)
// OIDTopicObject maps OIDs to MQTT topics
type OIDTopicObject struct {
OID string `json:"oid"`
Topic string `json:"topic"`
}
// SNMPEndpointObject is the SNMP Endpoint definition
type SNMPEndpointObject struct {
Endpoint string `json:"endpoint"`
Community string `json:"community"`
OIDTopics []OIDTopicObject `json:"oidTopics"`
}
// SNMPConfig basic config
// SNMPMapObject basic map of endpoints
type SNMPMapObject struct {
SNMPEndpoints []SNMPEndpointObject `json:"snmpEndpoints"`
}

2
go.mod
View File

@ -5,7 +5,7 @@ go 1.13
require (
github.com/aleasoluciones/goaleasoluciones v0.0.0-20190802084519-19690e2580be // indirect
github.com/aleasoluciones/gosnmpquerier v0.0.0-20190802084245-be620504e4c1
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815 // indirect
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815
github.com/eclipse/paho.mqtt.golang v1.2.0
github.com/soniah/gosnmp v1.22.0
golang.org/x/net v0.0.0-20191014212845-da9a3fd4c582 // indirect