v1

package
v0.0.0-...-a0c03a0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MIBRegistry

type MIBRegistry struct {
	// contains filtered or unexported fields
}

MIBRegistry keeps the data for building the (OID, strings) map

func New

func New() *MIBRegistry

Return a new MIBRegistry pointer

func (*MIBRegistry) Load

func (MIB *MIBRegistry) Load(src map[string]of.MIB) error

Load given map[oid]MIB into registry.

func (*MIBRegistry) MIB

func (MIB *MIBRegistry) MIB(oid string) *of.MIB

Return MIB for given OID.

func (*MIBRegistry) ShortString

func (MIB *MIBRegistry) ShortString(oid string) string

Return the last node to its name. Ex: 1.3.6.1.2.1.11.19 -> snmpInTraps.

func (*MIBRegistry) String

func (MIB *MIBRegistry) String(oid string) string

Return display string for given OID.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL