Documentation
¶
Index ¶
- func GetSubOid(oid string, baseOid string) string
- func IsOid(oid string) bool
- func IsOidPartOf(oid string, baseOid string) bool
- func SetVersion(client *gosnmp.GoSNMP, version string) error
- func SortOIDs(list []string) []string
- type IndexedIds
- type Table
- func (t *Table) GetIntValue(id string, oid string) (int, error)
- func (t *Table) GetSortedOIDs() []string
- func (t *Table) GetStringValue(id string, oid string) (string, error)
- func (t *Table) GetUintValue(id string, oid string) (uint, error)
- func (t *Table) GetValue(id string, oid string) (interface{}, error)
- func (t *Table) Reset()
- func (t *Table) Walk() error
- type TableColumns
- type TableRows
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsOidPartOf ¶
IsOidPartOf tests if an OID is equal of below another OID
Types ¶
type IndexedIds ¶
type Table ¶
type Table struct {
Client *gosnmp.GoSNMP
Oid string
Columns IndexedIds
Values TableRows
}
func LoadTableFromWalkOutput ¶
func (*Table) GetSortedOIDs ¶
func (*Table) GetStringValue ¶
type TableColumns ¶
type TableRows ¶
type TableRows map[string]TableColumns
Click to show internal directories.
Click to hide internal directories.