Versions in this module Expand all Collapse all v1 v1.0.2 Jun 24, 2020 Changes in this version + const BitString + const Counter32 + const Counter64 + const EndOfMibView + const Gauge32 + const GetBulkRequest + const GetNextRequest + const GetRequest + const GetResponse + const Integer + const IpAddress + const NoSuchInstance + const NoSuchObject + const NsapAddress + const Null + const ObjectIdentifier + const OctetString + const Opaque + const Sequence + const SetRequest + const TimeTicks + const Trap + const Uinteger32 + var DEFAULT_PORT = 161 + func ParseUint16(content []byte) int + func Uvarint(buf []byte) (x uint64) + type Asn1BER byte + func (dataType Asn1BER) String() string + type BitStringValue struct + BitLength int + Bytes []byte + func (b BitStringValue) At(i int) int + func (b BitStringValue) RightAlign() []byte + type GoSNMP struct + Community string + Log *l.Logger + Target string + Timeout time.Duration + Version SnmpVersion + func NewGoSNMP(target, community string, version SnmpVersion, timeout int64) (*GoSNMP, error) + func (x *GoSNMP) BulkWalk(max_repetitions uint8, oid string) (results []SnmpPDU, err error) + func (x *GoSNMP) Debug(data []byte) (*SnmpPacket, error) + func (x *GoSNMP) Get(oid string) (p *SnmpPacket, err error) + func (x *GoSNMP) GetBulk(non_repeaters, max_repetitions uint8, oids ...string) (p *SnmpPacket, err error) + func (x *GoSNMP) GetMulti(oids []string) (p *SnmpPacket, err error) + func (x *GoSNMP) GetNext(oid string) (p *SnmpPacket, err error) + func (x *GoSNMP) SetDebug(d bool) + func (x *GoSNMP) SetTimeout(seconds int64) + func (x *GoSNMP) SetVerbose(v bool) + func (x *GoSNMP) StreamWalk(oid string, c chan *Variable) error + func (x *GoSNMP) Walk(oid string) (results []SnmpPDU, err error) + type RawBER struct + BERVariable *Variable + Data []byte + DataLength uint64 + HeaderLength uint64 + Type Asn1BER + type SnmpPDU struct + Name string + Type Asn1BER + Value interface{} + type SnmpPacket struct + Community string + Error uint8 + ErrorIndex uint8 + MaxRepetitions uint8 + NonRepeaters uint8 + RequestID uint8 + RequestType Asn1BER + Variables []SnmpPDU + Version SnmpVersion + func Unmarshal(packet []byte) (*SnmpPacket, error) + type SnmpVersion uint8 + const Version1 + const Version2c + func (s SnmpVersion) String() string + type Variable struct + Name []int + Size uint64 + Type Asn1BER + Value interface{}