From 6a305eaa7653c1a6af344856326c86c4544f9de1 Mon Sep 17 00:00:00 2001 From: Daniel Chote Date: Tue, 15 Oct 2019 11:42:24 -0400 Subject: [PATCH] fix linting --- config/config.go | 4 +++- go.mod | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index d7315f3..f58c2a6 100644 --- a/config/config.go +++ b/config/config.go @@ -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"` } diff --git a/go.mod b/go.mod index 4fe4942..d496ee0 100644 --- a/go.mod +++ b/go.mod @@ -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