beater

package
v6.0.0-rc1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2017 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(_ *beat.Beat, ucfg *common.Config) (beat.Beater, error)

Creates beater

Types

type Config

type Config struct {
	Host               string        `config:"host"`
	MaxUnzippedSize    int64         `config:"max_unzipped_size"`
	MaxHeaderBytes     int           `config:"max_header_bytes"`
	ReadTimeout        time.Duration `config:"read_timeout"`
	WriteTimeout       time.Duration `config:"write_timeout"`
	ShutdownTimeout    time.Duration `config:"shutdown_timeout"`
	SecretToken        string        `config:"secret_token"`
	SSL                *SSLConfig    `config:"ssl"`
	ConcurrentRequests int           `config:"concurrent_requests" validate:"min=1"`
}

type SSLConfig

type SSLConfig struct {
	Enabled    *bool  `config:"enabled"`
	PrivateKey string `config:"key"`
	Cert       string `config:"certificate"`
}

Jump to

Keyboard shortcuts

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