Documentation
¶
Index ¶
Constants ¶
View Source
const ( GLOBAL_QUEUE_SIZE = 1024 DESTINATION_QUEUE_SIZE = 1024 )
View Source
const ( GET = iota + 1 GETNEXT WALK )
View Source
const (
QUERIER_TIMEOUT = 2 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func NewSyncQuerier ¶
Types ¶
type AsyncQuerier ¶
type AsyncQuerier struct {
Input chan Query
Output chan Query
Contention int
// contains filtered or unexported fields
}
func NewAsyncQuerier ¶
func NewAsyncQuerier(contention int, numErrors int, resetTime time.Duration) *AsyncQuerier
type GoSnmpClient ¶
type GoSnmpClient struct{}
type Query ¶
type QueryWithOutputChannel ¶
type QueryWithOutputChannel struct {
// contains filtered or unexported fields
}
type SnmpClient ¶
type SnmpClient interface {
// contains filtered or unexported methods
}
type SyncQuerier ¶
type SyncQuerier interface {
ExecuteQuery(query Query) Query
Get(destination, community string, oids []string, timeout time.Duration, retries int) ([]gosnmp.SnmpPDU, error)
GetNext(destination, community string, oids []string, timeout time.Duration, retries int) ([]gosnmp.SnmpPDU, error)
Walk(destination, community, oid string, timeout time.Duration, retries int) ([]gosnmp.SnmpPDU, error)
}
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
amqpsnmpqueries
command
|
|
|
get
command
|
|
|
snmphttpserver
command
|
|
|
snmpqueries
command
|
|
|
sync_snmpqueries
command
|
|
|
walk
command
|
|
Click to show internal directories.
Click to hide internal directories.