config

package
v8.0.0-beta2+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	ScanFrequency:           30 * time.Second,
	ContainerName:           "insights-logs-networksecuritygroupflowevent",
	CheckpointsTableName:    "nsgflowlogsbeatcheckpoints",
	CheckpointsTableTimeout: 15,
	IgnoreOlder:             10 * time.Minute,
	Workers:                 4,
}

DefaultConfig - default configuration settings

Functions

This section is empty.

Types

type Config

type Config struct {
	ScanFrequency           time.Duration `config:"scan_frequency"`
	StorageAccountName      string        `config:"storage_account_name"`
	StorageAccountKey       string        `config:"storage_account_key"`
	ContainerName           string        `config:"container_name"`
	CheckpointsTableName    string        `config:"checkpoints_table_name"`
	CheckpointsTableTimeout uint          `config:"checkpoints_table_timeout"`
	IgnoreOlder             time.Duration `config:"ignore_older"`
	Workers                 int           `config:"workers"`
}

Config - all configuration settings

func (Config) Validate

func (cfg Config) Validate() error

Validate validates the configuration and returns an error describing all problems or nil if there are none

Jump to

Keyboard shortcuts

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