config

package
v2.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultInputBufferSize = 10000
View Source
const DefaultInputFilterWorkerNum = 1
View Source
const DefaultOutputBufferSize = 10000

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferConfig

type BufferConfig struct {
	Size uint
	// contains filtered or unexported fields
}

func (*BufferConfig) GetName

func (c *BufferConfig) GetName() string

func (*BufferConfig) GetSize

func (c *BufferConfig) GetSize() uint

type Config

type Config struct {
	// number of workers that moves msg from input buffer to output buffer with msg filtering.
	InputFilterWorkerNum uint
	LogLevel             string
	MetricsListen        string
	InputBufferConfig    *BufferConfig
	Inputs               plugin.InputPlugins
	Filters              plugin.FilterPlugins
	OutputGroups         []OutputGroupConfig
}

func LoadConfig

func LoadConfig(fs afero.Fs, cfgFile string) (*Config, error)

func NewConfig

func NewConfig() *Config

type OutputGroupConfig

type OutputGroupConfig struct {
	Name         string
	BufferConfig *BufferConfig
	Filters      plugin.FilterPlugins
	Outputs      plugin.OutputPlugins
}

Jump to

Keyboard shortcuts

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