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"`
}