config

package
v0.0.0-...-f4b316e Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2019 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(webDriver webdriver.WebDriver) *configurationParser

Types

type ConfigurationParser

type ConfigurationParser interface {
	ParseConfiguration(content []byte) ([]monitoring_node.Node, error)
}

type XmlAction

type XmlAction struct {
	Type     string        `xml:"type,attr"`
	Value    string        `xml:"value,attr"`
	Strategy string        `xml:"strategy,attr"`
	Query    string        `xml:"query,attr"`
	Duration time.Duration `xml:"duration,attr"`
}

type XmlNode

type XmlNode struct {
	NodeList         []XmlNode   `xml:"node"`
	ActionList       []XmlAction `xml:"action"`
	Silent           bool        `xml:"silent,attr"`
	SilentUntil      string      `xml:"silentuntil,attr"`
	Disabled         bool        `xml:"disabled,attr"`
	Check            string      `xml:"check,attr"`
	Port             int         `xml:"port,attr"`
	Retrycount       int         `xml:"retrycount,attr"`
	Timeout          int         `xml:"timeout,attr"`
	Host             string      `xml:"host,attr"`
	Url              string      `xml:"url,attr"`
	Name             string      `xml:"name,attr"`
	ExpectBody       string      `xml:"expectbody,attr"`
	ExpectContent    string      `xml:"expectcontent,attr"`
	ExpectStatusCode int         `xml:"expectstatuscode,attr"`
	ExpectTitle      string      `xml:"expecttitle,attr"`
	Username         string      `xml:"username,attr"`
	Password         string      `xml:"password,attr"`
	PasswordFile     string      `xml:"passwordfile,attr"`
}

type XmlNodes

type XmlNodes struct {
	NodeList []XmlNode `xml:"node"`
}

Jump to

Keyboard shortcuts

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