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 ¶
func New(ui ControllerOptions) http.Handler
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 ¶
func (c *Controller) ToTag(w http.ResponseWriter, r *http.Request) hb.TagInterface
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
Click to show internal directories.
Click to hide internal directories.