Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection interface { Get(id string) (string, error) GetMany(id []string) (map[string]string, error) Set(id string, value string) error }
func DialSNMP ¶
func DialSNMP(username, password, community, ip string, version int) Connection
Creating the SNMP Connection Object
type Devices ¶
type Devices map[string]device
func (Devices) AddDevice ¶
func (tm Devices) AddDevice(devName, protocol string, protocolOpt ProtocolOptType) device
func (Devices) RegisterDeviceParams ¶
Register Which Parameter of the device needs to read/write
func (Devices) Subscribe ¶
Create a Subscription upon on the name of topic : <device name>/<oid>/<optional interval in seconds> e.g : dev1/1.2.1.4.5.1.2/100 or testdev/1.2.1.4.2.1
func (Devices) Unsubscribe ¶
type ProtocolOptType ¶
type ProtocolOptType struct {
Username, Password, Community, Ip, Version string
}
Click to show internal directories.
Click to hide internal directories.