routes

package
v0.0.0-...-95bb65c Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: ISC Imports: 16 Imported by: 0

Documentation

Overview

Package routes defines all the handling functions for all the routes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func New

func New(db *gorm.DB, c config.Config) Controller

func (Controller) Activate

func (controller Controller) Activate(c *gin.Context)

func (Controller) Admin

func (controller Controller) Admin(c *gin.Context)

func (Controller) ForgotPassword

func (controller Controller) ForgotPassword(c *gin.Context)

func (Controller) ForgotPasswordPost

func (controller Controller) ForgotPasswordPost(c *gin.Context)

func (Controller) Index

func (controller Controller) Index(c *gin.Context)

func (Controller) Login

func (controller Controller) Login(c *gin.Context)

func (Controller) LoginPost

func (controller Controller) LoginPost(c *gin.Context)

func (Controller) Logout

func (controller Controller) Logout(c *gin.Context)

func (Controller) NoRoute

func (controller Controller) NoRoute(c *gin.Context)

func (Controller) Register

func (controller Controller) Register(c *gin.Context)

func (Controller) RegisterPost

func (controller Controller) RegisterPost(c *gin.Context)

func (Controller) ResendActivation

func (controller Controller) ResendActivation(c *gin.Context)

func (Controller) ResendActivationPost

func (controller Controller) ResendActivationPost(c *gin.Context)

func (Controller) ResetPassword

func (controller Controller) ResetPassword(c *gin.Context)

func (Controller) ResetPasswordPost

func (controller Controller) ResetPasswordPost(c *gin.Context)

func (Controller) Search

func (controller Controller) Search(c *gin.Context)

type Message

type Message struct {
	Type    string // success, warning, error, etc.
	Content string
}

type PageData

type PageData struct {
	Title           string
	Messages        []Message
	IsAuthenticated bool
	CacheParameter  string
}

type ResetPasswordPageData

type ResetPasswordPageData struct {
	PageData
	Token string
}

type SearchData

type SearchData struct {
	PageData
	Results []models.Website
}

Jump to

Keyboard shortcuts

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