snmptraptest

package
v1.3.0-rc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL