Struct exar::CollectionConfig [] [src]

pub struct CollectionConfig {
    pub logs_path: String,
    pub index_granularity: u64,
    pub routing_strategy: RoutingStrategy,
    pub scanners: ScannersConfig,
}

Exar DB's collection configuration.

Examples

extern crate exar;

use exar::*;

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

Fields

Path to the logs directory.

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

Subscriptions' routing strategy.

Log scanners' configuration.

Methods

impl CollectionConfig
[src]

Returns the scanners sleep as an instance of Duration.

Trait Implementations

impl Clone for CollectionConfig
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CollectionConfig
[src]

Formats the value using the given formatter.

impl PartialEq for CollectionConfig
[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 CollectionConfig
[src]

impl Default for CollectionConfig
[src]

Returns the "default value" for a type. Read more