config

package
v0.0.0-...-e3e8c6c Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2017 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DefaultSchedule             string        = "@every 1m"
	DefaultTimeout              time.Duration = 60 * time.Second
	DefaultDocumentType         string        = "httpbeat"
	DefaultOutputFormat         string        = "string"
	DefaultJsonDotModeCharacter string        = "_"
)

Defaults for config variables which are not set

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuthenticationConfig

type BasicAuthenticationConfig struct {
	Username string
	Password string
}

type ConfigSettings

type ConfigSettings struct {
	Httpbeat HttpbeatConfig
}

type HostConfig

type HostConfig struct {
	Schedule             string
	Url                  string
	BasicAuth            BasicAuthenticationConfig `config:"basic_auth"`
	Method               string
	Body                 string
	Headers              map[string]string
	ProxyUrl             string `config:"proxy_url"`
	Timeout              *int64
	DocumentType         string            `config:"document_type"`
	Fields               map[string]string `config:"fields"`
	SSL                  *outputs.TLSConfig
	OutputFormat         string `config:"output_format"`
	JsonDotMode          string `config:"json_dot_mode"`
	JsonDotModeCharacter string `config:"json_dot_mode_character"`
}

type HttpbeatConfig

type HttpbeatConfig struct {
	Hosts []HostConfig
}

Jump to

Keyboard shortcuts

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