driver

package
v0.0.0-...-099f623 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Drivers map[string]Driver

Functions

func RegisterDriver

func RegisterDriver(name string, driver Driver)

Types

type Driver

type Driver interface {
	Init()
	GetSNMP() *snmp.SNMP
	TriggerScript() bool
}

type Status

type Status map[string]string

func GetStatus

func GetStatus(d Driver) (status Status)

func (Status) Env

func (status Status) Env() (env []string)

func (Status) Log

func (status Status) Log()

Jump to

Keyboard shortcuts

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