config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duration

type Duration time.Duration

func (Duration) Duration

func (d Duration) Duration() time.Duration

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(data []byte) error

func (*Duration) UnmarshalYAML

func (d *Duration) UnmarshalYAML(value *yaml.Node) error

type LoggingConfig

type LoggingConfig struct {
	Structured bool `json:"structured" yaml:"structured"`
}

type RuntimeConfig

type RuntimeConfig struct {
	FlushInterval    Duration `json:"flush_interval" yaml:"flush_interval"`
	WindowSize       Duration `json:"window_size" yaml:"window_size"`
	MaxInMemorySpans int      `json:"max_in_memory_spans" yaml:"max_in_memory_spans"`
	LateSpanPolicy   string   `json:"late_span_policy" yaml:"late_span_policy"`
}

type ServeConfig

type ServeConfig struct {
	Server   ServerConfig  `json:"server" yaml:"server"`
	Runtime  RuntimeConfig `json:"runtime" yaml:"runtime"`
	Sink     SinkConfig    `json:"sink" yaml:"sink"`
	Logging  LoggingConfig `json:"logging" yaml:"logging"`
	Overlays []string      `json:"overlays" yaml:"overlays"`
}

func DefaultServeConfig

func DefaultServeConfig() ServeConfig

func LoadServeConfig

func LoadServeConfig(path string) (ServeConfig, error)

func (ServeConfig) Validate

func (c ServeConfig) Validate() error

type ServerConfig

type ServerConfig struct {
	ListenAddress     string `json:"listen_address" yaml:"listen_address"`
	GRPCListenAddress string `json:"grpc_listen_address" yaml:"grpc_listen_address"`
	MaxRequestBytes   int64  `json:"max_request_bytes" yaml:"max_request_bytes"`
}

type SinkConfig

type SinkConfig struct {
	Directory  string `json:"directory" yaml:"directory"`
	LatestPath string `json:"latest_path" yaml:"latest_path"`
}

Jump to

Keyboard shortcuts

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