client_options
Types
Options for the ClamAV client
pub type ClamAvClientOptions {
ClamAvClientOptions(
host: String,
port: Int,
connection_timeout: Int,
reply_timeout: Int,
logger: Logger,
)
}
Constructors
-
ClamAvClientOptions( host: String, port: Int, connection_timeout: Int, reply_timeout: Int, logger: Logger, )
Logger interface for the ClamAV client to use.
To disable logging, pass in the nil_logger
pub type Logger {
Logger(
log_error: fn(String) -> Nil,
log_warning: fn(String) -> Nil,
log_info: fn(String) -> Nil,
)
}
Constructors
-
Logger( log_error: fn(String) -> Nil, log_warning: fn(String) -> Nil, log_info: fn(String) -> Nil, )