visitorpaths

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CardVisitorPaths added in v0.7.0

func CardVisitorPaths(data ControllerData, ui shared.ControllerOptions) hb.TagInterface

CardVisitorPaths builds the visitor paths experience card.

func New

New creates a new visitor paths controller

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller handles the visitor paths page

func (*Controller) Handler

func (c *Controller) Handler(w http.ResponseWriter, r *http.Request) string

ToTag renders the controller to an HTML tag

func (*Controller) ServeHTTP

func (c *Controller) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements the http.Handler interface

type ControllerData

type ControllerData struct {
	Request    *http.Request
	Paths      []statsstore.VisitorInterface
	Page       int
	TotalPages int
	PageSize   int
	TotalCount int64
	Filters    FilterOptions
}

ControllerData contains the data needed for visitor paths views

type ControllerOptions added in v0.7.0

type ControllerOptions = shared.ControllerOptions

ControllerOptions alias for shared controller options

type FilterOptions added in v0.7.0

type FilterOptions struct {
	Range        string
	From         string
	To           string
	Country      string
	PathContains string
	PathExact    string
	Device       string
}

FilterOptions captures the active filters for visitor paths

Jump to

Keyboard shortcuts

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