Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIConfig ¶
type APIConfig struct {
ServerURL string `json:"serverUrl" mapstructure:"serverUrl"`
APIKey string `json:"apiKey" mapstructure:"apiKey"`
UploadTimeout time.Duration `json:"uploadTimeout" mapstructure:"uploadTimeout"`
}
APIConfig holds HTTP client configuration for the OCAP web API.
func GetAPIConfig ¶
func GetAPIConfig() APIConfig
GetAPIConfig returns the HTTP API client configuration.
type MemoryConfig ¶
type MemoryConfig struct {
OutputDir string `json:"outputDir" mapstructure:"outputDir"`
CompressOutput bool `json:"compressOutput" mapstructure:"compressOutput"`
}
MemoryConfig holds in-memory/JSON storage backend settings
type OTelConfig ¶
type OTelConfig struct {
Enabled bool `json:"enabled" mapstructure:"enabled"`
ServiceName string `json:"serviceName" mapstructure:"serviceName"`
BatchTimeout time.Duration `json:"batchTimeout" mapstructure:"batchTimeout"`
Endpoint string `json:"endpoint" mapstructure:"endpoint"` // OTLP endpoint (optional)
Insecure bool `json:"insecure" mapstructure:"insecure"` // Use insecure for OTLP
}
OTelConfig holds OpenTelemetry configuration
func GetOTelConfig ¶
func GetOTelConfig() OTelConfig
GetOTelConfig returns the OpenTelemetry configuration
type SQLiteConfig ¶
type SQLiteConfig struct {
DumpInterval time.Duration `json:"dumpInterval" mapstructure:"dumpInterval"`
}
SQLiteConfig holds SQLite storage backend settings
type StorageConfig ¶
type StorageConfig struct {
Type string `json:"type" mapstructure:"type"`
Memory MemoryConfig `json:"memory" mapstructure:"memory"`
SQLite SQLiteConfig `json:"sqlite" mapstructure:"sqlite"`
}
StorageConfig holds storage backend configuration
func GetStorageConfig ¶
func GetStorageConfig() StorageConfig
GetStorageConfig returns the storage backend configuration
Click to show internal directories.
Click to hide internal directories.