Struct exar::PartialCollectionConfig [] [src]

pub struct PartialCollectionConfig {
    pub logs_path: Option<String>,
    pub index_granularity: Option<u64>,
    pub routing_strategy: Option<RoutingStrategy>,
    pub scanners: Option<PartialScannersConfig>,
}

Exar DB's partial collection configuration. Holds overrides for the main database configuration.

Examples

extern crate exar;

use exar::*;

let config = PartialCollectionConfig {
    logs_path: Some("/path/to/logs".to_owned()),
    index_granularity: Some(100000),
    routing_strategy: Some(RoutingStrategy::default()),
    scanners: Some(PartialScannersConfig {
        nr_of_scanners: Some(2),
        sleep_time_in_ms: Some(10)
    })
};

Fields

Path to the logs directory.

Granularity of the log lines index (used by IndexedLineReader).

Subscriptions' routing strategy.

Log scanners' configuration.

Trait Implementations

impl Clone for PartialCollectionConfig
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PartialCollectionConfig
[src]

Formats the value using the given formatter.

impl PartialEq for PartialCollectionConfig
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for PartialCollectionConfig
[src]