Documentation ¶ Index ¶ type Pdu type Server func NewServer() (*Server, error) func (s *Server) Close() error func (s *Server) OnTRAP(trap *snmpgo.TrapRequest) func (s *Server) Traps() []Trap type Trap type VarBind type VarBinds Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Pdu ¶ type Pdu struct { IsNil bool Type snmpgo.PduType ErrorStatus snmpgo.ErrorStatus ErrorIndex int VarBinds VarBinds } type Server ¶ type Server struct { Addr string Community string // contains filtered or unexported fields } func NewServer ¶ func NewServer() (*Server, error) func (*Server) Close ¶ func (s *Server) Close() error func (*Server) OnTRAP ¶ func (s *Server) OnTRAP(trap *snmpgo.TrapRequest) func (*Server) Traps ¶ func (s *Server) Traps() []Trap type Trap ¶ type Trap struct { Pdu Pdu Error error } type VarBind ¶ type VarBind struct { Oid string Value string Type string } type VarBinds ¶ type VarBinds []VarBind Source Files ¶ View all Source files snmptraptest.go Click to show internal directories. Click to hide internal directories.