Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateConfig ¶
Types ¶
type Config ¶
type Config struct { GRPC GRPC REST REST Logger Logger Monitor Monitor ExtraAttributes ExtraAttributes Filter Filter Preprocessor Preprocessor ModelAttributes ModelAttributes }
Config is configuration for Server
func RunConfigWithConfigFile ¶
RunConfig calls the LoadConfig function & returns errors if any
func (*Config) LoadConfig ¶
LoadConfig Loads a TOML file from the path into this Config object
type ExtraAttributes ¶
type ExtraAttributes struct {
MonitorMode string `toml:"monitorMode"`
}
type GRPC ¶
type GRPC struct {
Port string `toml:"port"`
}
GRPC contains the gRPC-specific configuration options
type Logger ¶
type Logger struct { Level string `toml:"level"` Output string `toml:"output"` Format string `toml:"format"` }
Logger contains the logging-specific configuration options
type ModelAttributes ¶
type ModelAttributes struct {
ModelPath string `toml:"modelPath"`
}
type Monitor ¶
type Monitor struct {
Address string `toml:"address"`
}
Monitor contains the monitoring-specific configuration options
type Preprocessor ¶
type Preprocessor struct {
SocketPath string `toml:"socketPath" default:"/tmp/spamcheck/preprocessor.sock"`
}
Click to show internal directories.
Click to hide internal directories.