Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { BulkWalkAll(rootOid string) (results []gosnmp.SnmpPDU, err error) Get(oids []string) (result *gosnmp.SnmpPacket, err error) }
Client defines a new SNMP interface to abstract SNMP operations.
type SwitchClient ¶
SwitchClient implements the Client interface.
func (*SwitchClient) BulkWalkAll ¶
func (s *SwitchClient) BulkWalkAll(rootOid string) (results []gosnmp.SnmpPDU, err error)
BulkWalkAll performs an SNMP BulkWalk operation for an OID, returning an array of all values.
func (*SwitchClient) Get ¶
func (s *SwitchClient) Get(oids []string) (results *gosnmp.SnmpPacket, err error)
Get does an SNMP Get operation on an array of OIDs.
Click to show internal directories.
Click to hide internal directories.