engine

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Driver          string        `mapstructure:"Driver"`
	SnmpIP          string        `mapstructure:"SnmpIP"`
	SnmpPort        uint16        `mapstructure:"SnmpPort"`
	SnmpCommunity   string        `mapstructure:"SnmpCommunity"`
	SnmpTimeout     time.Duration `mapstructure:"SnmpTimeout"`
	SnmpRetries     int           `mapstructure:"SnmpRetries"`
	SnmpPollTimeMin time.Duration `mapstructure:"SnmpPollTimeMin"`
	SnmpPollTimeMax time.Duration `mapstructure:"SnmpPollTimeMax"`
	SnmpTrapListen  string        `mapstructure:"SnmpTrapListen"`
	Script          string        `mapstructure:"Script"`
	ScriptArgs      []string      `mapstructure:"ScriptArgs"`
	ScriptTimeout   time.Duration `mapstructure:"ScriptTimeout"`
}

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

func New

func New() *Engine

func (*Engine) Config

func (e *Engine) Config(configFile string) (err error)

func (*Engine) Run

func (e *Engine) Run()

Jump to

Keyboard shortcuts

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