accesslog

package module
v0.0.0-...-2c6a71f Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: MIT Imports: 10 Imported by: 6

README

accesslog

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupString

func CleanupString(s string) string

func ProcessEntries

func ProcessEntries[T any](r io.Reader, callback func(entry Entry[T], err error) error) error

Types

type Entry

type Entry[T any] struct {
	// contains filtered or unexported fields
}

func ParseEntry

func ParseEntry[T any](raw []byte) (entry Entry[T], err error)

func (*Entry[T]) Entry

func (e *Entry[T]) Entry() *T

func (*Entry[T]) Fields

func (*Entry[T]) Fields() []string

func (*Entry[T]) String

func (e *Entry[T]) String() string

func (*Entry[T]) Values

func (e *Entry[T]) Values(fields []string) []string

type Request

type Request struct {
	Method string
	URL    *url.URL
	Proto  string
}

func ParseRequest

func ParseRequest(raw string) (Request, error)

func (Request) String

func (r Request) String() string

Directories

Path Synopsis
cmd
accesslog command
obs module

Jump to

Keyboard shortcuts

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