v0.1.9 pre-stream log regex filtering added

This commit is contained in:
2025-07-08 12:54:39 -04:00
parent d7f2c0d54d
commit 44d9921e80
15 changed files with 828 additions and 107 deletions

View File

@ -1,6 +1,8 @@
// FILE: src/internal/config/stream.go
package config
import "logwisp/src/internal/filter"
type StreamConfig struct {
// Stream identifier (used in logs and metrics)
Name string `toml:"name"`
@ -8,6 +10,9 @@ type StreamConfig struct {
// Monitor configuration for this stream
Monitor *StreamMonitorConfig `toml:"monitor"`
// Filter configuration
Filters []filter.Config `toml:"filters"`
// Server configurations
TCPServer *TCPConfig `toml:"tcpserver"`
HTTPServer *HTTPConfig `toml:"httpserver"`