Trait krecik::actors::generic_checker::GenericChecker[][src]

pub trait GenericChecker {
    fn check_domains(checks: &[Check]) -> Stories { ... }
fn check_pages(checks: &[Check]) -> Stories { ... }
fn check_ssl_expire(
        domain_name: &str,
        domain_expectation: DomainExpectation,
        notifier: Option<String>
    ) -> Story { ... }
fn handle_page_length_expectation(
        url: &str,
        raw_page_content: &str,
        expected_content_length: &PageExpectation,
        notifier: Option<String>
    ) -> Story { ... }
fn find_code_validation(
        page_expectations: &[PageExpectation]
    ) -> &PageExpectation { ... }
fn find_content_validations(
        page_expectations: &[PageExpectation]
    ) -> PageExpectations { ... }
fn find_content_length_validation(
        page_expectations: &[PageExpectation]
    ) -> &PageExpectation { ... }
fn find_address_validation(
        page_expectations: &[PageExpectation]
    ) -> &PageExpectation { ... }
fn produce_curl_response_error(err: CurlError) -> Error { ... }
fn handle_page_content_expectations(
        url: &str,
        raw_page_content: &str,
        expected_contents: &[PageExpectation],
        notifier: Option<String>
    ) -> Stories { ... }
fn handle_page_address_expectation(
        url: &str,
        address: &str,
        expected_address: &PageExpectation,
        notifier: Option<String>
    ) -> Story { ... }
fn handle_page_httpcode_expectation(
        url: &str,
        connect_oserror: Option<Error>,
        response_code: Result<u32, Error>,
        expected_code: &PageExpectation,
        notifier: Option<String>
    ) -> Story { ... }
fn process_page_handler(
        page_check: &Page,
        handler: CurlHandler,
        multi: &Multi,
        notifier: Option<String>
    ) -> Stories { ... }
fn list_of_headers(headers: Option<Vec<String>>) -> List { ... }
fn load_handler_for(page_check: &Page, multi: &Multi) -> CurlHandler { ... } }

Trait implementing all helper functions for Curl-driven checks

Provided methods

fn check_domains(checks: &[Check]) -> Stories[src]

Executes domain checks, returns Stories

fn check_pages(checks: &[Check]) -> Stories[src]

Executes page checks, returns Stories

fn check_ssl_expire(
    domain_name: &str,
    domain_expectation: DomainExpectation,
    notifier: Option<String>
) -> Story
[src]

Check SSL certificate expiration using OpenSSL function

fn handle_page_length_expectation(
    url: &str,
    raw_page_content: &str,
    expected_content_length: &PageExpectation,
    notifier: Option<String>
) -> Story
[src]

Build a Story from a Length PageExpectation

fn find_code_validation(
    page_expectations: &[PageExpectation]
) -> &PageExpectation
[src]

Find and extract code validation from validations

fn find_content_validations(
    page_expectations: &[PageExpectation]
) -> PageExpectations
[src]

Find and extract content validations

fn find_content_length_validation(
    page_expectations: &[PageExpectation]
) -> &PageExpectation
[src]

Find and extract content length validation from validations

fn find_address_validation(
    page_expectations: &[PageExpectation]
) -> &PageExpectation
[src]

Find and extract address validation from validations

fn produce_curl_response_error(err: CurlError) -> Error[src]

Converts CurlError to Error

fn handle_page_content_expectations(
    url: &str,
    raw_page_content: &str,
    expected_contents: &[PageExpectation],
    notifier: Option<String>
) -> Stories
[src]

Build a Story from a Length PageExpectation

fn handle_page_address_expectation(
    url: &str,
    address: &str,
    expected_address: &PageExpectation,
    notifier: Option<String>
) -> Story
[src]

Build a Story from a Address PageExpectation

fn handle_page_httpcode_expectation(
    url: &str,
    connect_oserror: Option<Error>,
    response_code: Result<u32, Error>,
    expected_code: &PageExpectation,
    notifier: Option<String>
) -> Story
[src]

Build a Story from a HttpCode PageExpectation

fn process_page_handler(
    page_check: &Page,
    handler: CurlHandler,
    multi: &Multi,
    notifier: Option<String>
) -> Stories
[src]

Process Curl page requests using given handler

fn list_of_headers(headers: Option<Vec<String>>) -> List[src]

Build headers List for Curl

fn load_handler_for(page_check: &Page, multi: &Multi) -> CurlHandler[src]

Load page check handler

Loading content...

Implementors

Loading content...