Trait krecik::actors::generic_checker::GenericChecker [−][src]
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]
domain_name: &str,
domain_expectation: DomainExpectation,
notifier: Option<String>
) -> Story
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]
url: &str,
raw_page_content: &str,
expected_content_length: &PageExpectation,
notifier: Option<String>
) -> Story
Build a Story from a Length PageExpectation
fn find_code_validation(
page_expectations: &[PageExpectation]
) -> &PageExpectation
[src]
page_expectations: &[PageExpectation]
) -> &PageExpectation
Find and extract code validation from validations
fn find_content_validations(
page_expectations: &[PageExpectation]
) -> PageExpectations
[src]
page_expectations: &[PageExpectation]
) -> PageExpectations
Find and extract content validations
fn find_content_length_validation(
page_expectations: &[PageExpectation]
) -> &PageExpectation
[src]
page_expectations: &[PageExpectation]
) -> &PageExpectation
Find and extract content length validation from validations
fn find_address_validation(
page_expectations: &[PageExpectation]
) -> &PageExpectation
[src]
page_expectations: &[PageExpectation]
) -> &PageExpectation
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]
url: &str,
raw_page_content: &str,
expected_contents: &[PageExpectation],
notifier: Option<String>
) -> Stories
Build a Story from a Length PageExpectation
fn handle_page_address_expectation(
url: &str,
address: &str,
expected_address: &PageExpectation,
notifier: Option<String>
) -> Story
[src]
url: &str,
address: &str,
expected_address: &PageExpectation,
notifier: Option<String>
) -> Story
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]
url: &str,
connect_oserror: Option<Error>,
response_code: Result<u32, Error>,
expected_code: &PageExpectation,
notifier: Option<String>
) -> Story
Build a Story from a HttpCode PageExpectation
fn process_page_handler(
page_check: &Page,
handler: CurlHandler,
multi: &Multi,
notifier: Option<String>
) -> Stories
[src]
page_check: &Page,
handler: CurlHandler,
multi: &Multi,
notifier: Option<String>
) -> Stories
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