config

package
v0.0.0-...-0f49ba3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultThrottle          = 50000
	DefaultThrottleBucket    = 8
	DefaultDecoderQueueCount = 2
	DefaultDecoderQueueSize  = 1 << 14
	DefaultBrokerQueueSize   = 1 << 14
	DefaultFlowLogTTL        = 72 // hour
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Base              *config.Config
	CKWriterConfig    config.CKWriterConfig `yaml:"flowlog-ck-writer"`
	Throttle          int                   `yaml:"throttle"`
	ThrottleBucket    int                   `yaml:"throttle-bucket"`
	L4Throttle        int                   `yaml:"l4-throttle"`
	L7Throttle        int                   `yaml:"l7-throttle"`
	FlowLogTTL        FlowLogTTL            `yaml:"flow-log-ttl-hour"`
	DecoderQueueCount int                   `yaml:"flow-log-decoder-queue-count"`
	DecoderQueueSize  int                   `yaml:"flow-log-decoder-queue-size"`
}

func Load

func Load(base *config.Config, path string) *Config

func (*Config) Validate

func (c *Config) Validate() error

type FlowLogConfig

type FlowLogConfig struct {
	FlowLog Config `yaml:"ingester"`
}

type FlowLogTTL

type FlowLogTTL struct {
	L4FlowLog int `yaml:"l4-flow-log"`
	L7FlowLog int `yaml:"l7-flow-log"`
	L4Packet  int `yaml:"l4-packet"`
}

Jump to

Keyboard shortcuts

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