Crate rhit[][src]

Modules

args
md

Structs

Bar
BufReader

The BufReader<R> struct adds buffering to any reader.

Date

a not precise date, only valid in the context of the local set of log files. It’s implicitely in the timezone of the log files (assuming all the files have the same one). As nginx didn’t exist before JC, a u16 is good enough for the year.

Fields
File

A reference to an open file on the filesystem.

FileFinder
FileReader
Filterer
Filtering
Histogram
LineGroup

A non empty group of lines, with a common characteristic, for stats

LogBase
LogLine

A line in the access log, describing a hit.

MethodFilter

A filter for HTTP methods

Path

A slice of a path (akin to str).

Ranger
StatusFilter

A filter for status, allowing classes, ranges and exclusions Examples: 4xx 4xx,503 402-417,503 4xx,!404

StrFilter

a filter for strings

Trend
TrendComputer

Enums

DateFilter
DateParseError
Field

one of the tables that can be displayed

Filter
Key
LogParseError
Method

An HTTP method

StatusFilterParseError
StrFilterParseError

Statics

ALL_FIELDS
DEFAULT_FIELDS

Traits

BufRead

A BufRead is a type of Reader which has an internal buffer, allowing it to perform extra ways of reading.

DateIndexed

A trait for structs which hold the index of a date FIXME this thing is ridiculous, I need somebody knowing rust to fix it

FromStr

Parse a value from a string

LineConsumer
Read

The Read trait allows for reading bytes from a source.

Functions

get_file_first_date
histo_line

will panic if counts aren’t consistent with the max or if the max is 0. Use full height only if you don’t need to keep a margin with le line above

is_access_log_path
print_lines
run
unique_year_month