visitoractivity

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CardVisitorActivity added in v0.7.0

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

CardVisitorActivity builds the visitor activity card with detail modal

func New

New creates a new visitor activity controller

Types

type Controller

type Controller struct {
	UI ControllerOptions
}

Controller handles the visitor activity page

func (*Controller) Handler added in v0.7.0

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

Handler renders the controller output using the shared layout

func (*Controller) ServeHTTP

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

ServeHTTP implements the http.Handler interface

func (*Controller) ToTag

ToTag renders the controller to an HTML tag

type ControllerData

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

ControllerData contains the data needed for visitor activity pages

type ControllerOptions added in v0.7.0

type ControllerOptions = shared.ControllerOptions

ControllerOptions configures the visitor activity controller views

type FilterOptions added in v0.7.0

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

FilterOptions describes the active filters applied to the visitor list

Jump to

Keyboard shortcuts

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