controllers

package
v0.0.0-...-9fcd9d5 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RedirectToHttps

func RedirectToHttps(w http.ResponseWriter, r *http.Request)

This handler was made so when we only want our users to use https connection.

Types

type Authenticationdata

type Authenticationdata struct {
	Token string `json:"token" bson:"token`
}

type Database

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

func InitCredentials

func InitCredentials(usersDB accounts.UsersDB, quizDB quiz.QuizDB, resultDB quiz.ResultsDB) Database

func (*Database) AccountDeleteCollector

func (db *Database) AccountDeleteCollector()

A timed garbage collector which checks every 48 hours if accounts have been deleted and, if an account was deleted 15 days ago, it deletes it.

Directories

Path Synopsis
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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