router

package
v0.0.0-...-1437401 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnalyticsTokenRequired

func AnalyticsTokenRequired() gin.HandlerFunc

func CreateAnalytic

func CreateAnalytic(c *gin.Context)

func FilterOnTags

func FilterOnTags(c *gin.Context) func(db *gorm.DB) *gorm.DB

func GetAllCategories

func GetAllCategories(c *gin.Context)

func GetAllCategoryPosts

func GetAllCategoryPosts(c *gin.Context)

func GetAllPosts

func GetAllPosts(c *gin.Context)

func GetAllProviderPosts

func GetAllProviderPosts(c *gin.Context)

func GetAllProviders

func GetAllProviders(c *gin.Context)

func Paginate

func Paginate(c *gin.Context) func(db *gorm.DB) *gorm.DB

func RouterSetup

func RouterSetup()

Types

type CreateAnalyticRequestBody

type CreateAnalyticRequestBody struct {
	Url          string `json:"url" binding:"required"`
	RedirectCode string `json:"redirect_id" binding:"required"`
	Referer      string `json:"referer"`
	UserAgent    string `json:"user_agent" binding:"required"`
	Country      string `json:"country" binding:"required,iso3166_1_alpha2"`
}

Jump to

Keyboard shortcuts

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