pageviewactivity

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CardPageViewActivity added in v1.5.0

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

CardPageViewActivity builds the page view activity card with filter toolbar, visitor list, and footer controls.

func New

New creates a new page view activity controller.

Types

type Controller

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

Controller handles rendering the page view activity screen.

func (*Controller) Handler

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

Handler prepares the layout and returns the rendered HTML.

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 (useful for embedding).

type ControllerData

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

ControllerData holds the data required to render the page view activity screen.

type ControllerOptions

type ControllerOptions = shared.ControllerOptions

ControllerOptions aliases the shared controller options to avoid repetition in imports.

type FilterOptions

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

FilterOptions represents the active filters on the page view activity screen.

Jump to

Keyboard shortcuts

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