Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(ui ControllerOptions) http.Handler
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 ¶
func (c *Controller) ToTag(w http.ResponseWriter, r *http.Request) hb.TagInterface
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.
Click to show internal directories.
Click to hide internal directories.