hit

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer interface {
	Append(Hit)
	Flush() []Hit
	Len() int
	Drops() uint64
}

func NewBuffer

func NewBuffer(capacity int) Buffer

type Hit

type Hit struct {
	Host        string `json:"host"`
	Path        string `json:"path"`
	Referrer    string `json:"referrer,omitempty"`
	Title       string `json:"title,omitempty"`
	Width       int    `json:"width,omitempty"`
	VisitorHash string `json:"-"`
	Browser     string `json:"-"`
	OS          string `json:"-"`
	Channel     string `json:"-"`
	Source      string `json:"-"`
	UTMSource   string `json:"-"`
	UTMMedium   string `json:"-"`
	UTMCampaign string `json:"-"`
	UTMTerm     string `json:"-"`
	UTMContent  string `json:"-"`
}

func (*Hit) Normalize

func (h *Hit) Normalize()

Jump to

Keyboard shortcuts

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