Documentation
¶
Index ¶
- func NewMockSNMPScraper(get map[string]gosnmp.SnmpPDU, walk map[string][]gosnmp.SnmpPDU) *mockSNMPScraper
- type GoSNMPWrapper
- func (g *GoSNMPWrapper) Close() error
- func (g *GoSNMPWrapper) Connect() error
- func (g *GoSNMPWrapper) Get(oids []string) (results *gosnmp.SnmpPacket, err error)
- func (g *GoSNMPWrapper) SetOptions(fns ...func(*gosnmp.GoSNMP))
- func (g *GoSNMPWrapper) WalkAll(oid string) (results []gosnmp.SnmpPDU, err error)
- type SNMPScraper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GoSNMPWrapper ¶
type GoSNMPWrapper struct {
// contains filtered or unexported fields
}
func (*GoSNMPWrapper) Close ¶
func (g *GoSNMPWrapper) Close() error
func (*GoSNMPWrapper) Connect ¶
func (g *GoSNMPWrapper) Connect() error
func (*GoSNMPWrapper) Get ¶
func (g *GoSNMPWrapper) Get(oids []string) (results *gosnmp.SnmpPacket, err error)
func (*GoSNMPWrapper) SetOptions ¶
func (g *GoSNMPWrapper) SetOptions(fns ...func(*gosnmp.GoSNMP))
Click to show internal directories.
Click to hide internal directories.