Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareOIDs ¶
CompareOIDs returns an integer comparing two OIDs lexicographically. The result will be 0 if oid1 == oid2, -1 if oid1 < oid2, +1 if oid1 > oid2.
Types ¶
type OID ¶
type OID []uint32
OID defines an OID.
func MustParseOID ¶
MustParseOID works like ParseOID expect it panics on a parsing error.
func ParseOID ¶
ParseOID parses the provided string and returns a valid oid. If one of the subidentifers canot be parsed to an uint32, the function will panic.
func (OID) CommonPrefix ¶
CommonPrefix compares the oid with the provided one and returns a new oid containing all matching prefix subidentifiers.
Click to show internal directories.
Click to hide internal directories.