routes

package
v0.0.0-...-7cff283 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDashboard

func GetDashboard(c *gin.Context)

func GetPageRankings

func GetPageRankings(c *gin.Context)

func GetRefererRankings

func GetRefererRankings(c *gin.Context)

func GetScript

func GetScript(c *gin.Context)

func GetViewsByDay

func GetViewsByDay(c *gin.Context)

func SetupRoutes

func SetupRoutes() *gin.Engine

func TrackEvent

func TrackEvent(c *gin.Context)

Types

type Ranking

type Ranking struct {
	Key   string `json:"key"`
	Rank  int    `json:"rank"`
	Value int    `json:"value"`
}

type ViewByDay

type ViewByDay struct {
	Date  int64 `json:"date"`
	Count int   `json:"count"`
}

Jump to

Keyboard shortcuts

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