Documentation ¶
Index ¶
- Variables
- func GetCommandValueOID(port int16) string
- func GetMeteringValueOID(port int16) string
- func GetPortAlarmOID(portType flexlegacy.PortType, port int16) (oid string, err error)
- func GetPortCategoryAlarmOID(portType flexlegacy.PortType, port int16) (oid string, err error)
- func GetPortValueOID(portType flexlegacy.PortType, port int16) (oid string, err error)
- func GetScriptValueOID(port int16) string
- func GetStatusValueOID(port int16) string
- func GetVirtualValueOID(port int16) string
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = map[string]string{
"value": ".1.3.6.1.4.1.31957.1.3.4.1.4",
"alarm-state": ".1.3.6.1.4.1.31957.1.3.4.1.11",
"category": ".1.3.6.1.4.1.31957.1.3.4.1.8",
}
View Source
var (
ErrNoCorrespondentOID = errors.New("no correspondent OID")
)
View Source
var Metering = map[string]string{
"value": ".1.3.6.1.4.1.31957.1.3.2.1.14",
"alarm-state": ".1.3.6.1.4.1.31957.1.3.2.1.13",
"category": ".1.3.6.1.4.1.31957.1.3.2.1.12",
}
View Source
var Script = map[string]string{
"ident": ".1.3.6.1.4.1.31957.1.6.1.1.3",
"answered": ".1.3.6.1.4.1.31957.1.6.1.1.4",
}
View Source
var Status = map[string]string{
"value": ".1.3.6.1.4.1.31957.1.3.3.1.9",
"alarm-state": ".1.3.6.1.4.1.31957.1.3.3.1.10",
"category": ".1.3.6.1.4.1.31957.1.3.3.1.8",
}
View Source
var System = map[string]string{
"serial-number": ".1.3.6.1.4.1.31957.1.1.1.0",
"ident": ".1.3.6.1.4.1.31957.1.1.2.0",
"temperature": ".1.3.6.1.4.1.31957.1.1.16.0",
"power-supply": ".1.3.6.1.4.1.31957.1.1.17.0",
}
View Source
var Virtual = map[string]string{
"value": ".1.3.6.1.4.1.31957.1.3.6.1.14",
"alarm-state": ".1.3.6.1.4.1.31957.1.3.6.1.13",
"category": ".1.3.6.1.4.1.31957.1.3.6.1.12",
}
Functions ¶
func GetCommandValueOID ¶
func GetMeteringValueOID ¶
func GetPortAlarmOID ¶
func GetPortAlarmOID(portType flexlegacy.PortType, port int16) (oid string, err error)
func GetPortCategoryAlarmOID ¶
func GetPortCategoryAlarmOID(portType flexlegacy.PortType, port int16) (oid string, err error)
func GetPortValueOID ¶
func GetPortValueOID(portType flexlegacy.PortType, port int16) (oid string, err error)
func GetScriptValueOID ¶
func GetStatusValueOID ¶
func GetVirtualValueOID ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.