fix linting
This commit is contained in:
parent
ae54d666ca
commit
6a305eaa76
@ -6,18 +6,20 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// OIDTopicObject maps OIDs to MQTT topics
|
||||||
type OIDTopicObject struct {
|
type OIDTopicObject struct {
|
||||||
OID string `json:"oid"`
|
OID string `json:"oid"`
|
||||||
Topic string `json:"topic"`
|
Topic string `json:"topic"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SNMPEndpointObject is the SNMP Endpoint definition
|
||||||
type SNMPEndpointObject struct {
|
type SNMPEndpointObject struct {
|
||||||
Endpoint string `json:"endpoint"`
|
Endpoint string `json:"endpoint"`
|
||||||
Community string `json:"community"`
|
Community string `json:"community"`
|
||||||
OIDTopics []OIDTopicObject `json:"oidTopics"`
|
OIDTopics []OIDTopicObject `json:"oidTopics"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// SNMPConfig basic config
|
// SNMPMapObject basic map of endpoints
|
||||||
type SNMPMapObject struct {
|
type SNMPMapObject struct {
|
||||||
SNMPEndpoints []SNMPEndpointObject `json:"snmpEndpoints"`
|
SNMPEndpoints []SNMPEndpointObject `json:"snmpEndpoints"`
|
||||||
}
|
}
|
||||||
|
2
go.mod
2
go.mod
@ -5,7 +5,7 @@ go 1.13
|
|||||||
require (
|
require (
|
||||||
github.com/aleasoluciones/goaleasoluciones v0.0.0-20190802084519-19690e2580be // indirect
|
github.com/aleasoluciones/goaleasoluciones v0.0.0-20190802084519-19690e2580be // indirect
|
||||||
github.com/aleasoluciones/gosnmpquerier v0.0.0-20190802084245-be620504e4c1
|
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/eclipse/paho.mqtt.golang v1.2.0
|
||||||
github.com/soniah/gosnmp v1.22.0
|
github.com/soniah/gosnmp v1.22.0
|
||||||
golang.org/x/net v0.0.0-20191014212845-da9a3fd4c582 // indirect
|
golang.org/x/net v0.0.0-20191014212845-da9a3fd4c582 // indirect
|
||||||
|
Loading…
x
Reference in New Issue
Block a user