Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ISO8601 contains a time.Parse reference timestamp for ISO 8601.
ISO8601 = "2006-01-02T15:04:05-07:00"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
Consumer implements periodic polling of the supplied nginx access log tailer, aggregation of response counts from the returned log lines, and reporting of the latter via the supplied exporter (e.g. to Stackdriver).
func NewConsumer ¶
func NewConsumer(period time.Duration, tailer tailer.TailerT, exporter exporter.ExporterT) *Consumer
NewConsumer returns a Consumer polling the supplied tailer and reporting to the supplied exporter with the specified period.
Click to show internal directories.
Click to hide internal directories.