Documentation
¶
Index ¶
Constants ¶
View Source
const ( ServiceName = "opentdf-platform" ProviderOTLP = "otlp" ProviderFile = "file" DefaultFileMaxSize = 20 DefaultFileMaxBackups = 10 DefaultFileMaxAge = 30 ShutdownTimeout = 5 * time.Second // Added constant for shutdown timeout )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Enabled bool `json:"enabled" yaml:"enabled"`
Provider ProviderConfig `json:"provider" yaml:"provider"`
}
type FileConfig ¶ added in v0.5.3
type FileConfig struct {
Path string `json:"path" yaml:"path"`
PrettyPrint bool `json:"prettyPrint,omitempty" yaml:"prettyPrint,omitempty"`
MaxSize int `json:"maxSize,omitempty" yaml:"maxSize,omitempty"`
MaxBackups int `json:"maxBackups,omitempty" yaml:"maxBackups,omitempty"`
MaxAge int `json:"maxAge,omitempty" yaml:"maxAge,omitempty"`
Compress bool `json:"compress,omitempty" yaml:"compress,omitempty"`
}
type OTLPConfig ¶ added in v0.5.3
type ProviderConfig ¶ added in v0.5.3
type ProviderConfig struct {
Name string `json:"name" yaml:"name"`
OTLP *OTLPConfig `json:"otlp,omitempty" yaml:"otlp,omitempty"`
File *FileConfig `json:"file,omitempty" yaml:"file,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.