parser

package
v1.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListFiles

func ListFiles(path string) []string

listFiles returns a slice of paths to logs in the given dir

func ParseFile

func ParseFile(path string, reqChan chan<- *Request)

ParseFile does the heavy lifting of extracting requests from a given file. Each extracted request is sent up the supplied channel.

Types

type Request

type Request struct {
	Page string
	Verb string
	Time float64
}

Request holds the data from a single request

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL