application

package
v1.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JobJson

func JobJson(c *gin.Context)

returns a map[string]interface{} that can be marshalled as JSON

func MapURLs

func MapURLs(app *Application, router *gin.Engine)

func Setup

func Setup(db *db.Database) *gin.Engine

Types

type Application

type Application struct {
	AuthMiddleware        middlewares.AuthMiddleware
	AdminMiddleware       middlewares.AdminMiddleware
	UserProblemMiddleware middlewares.UserProblemMiddleware
	RegisterController    controllers.RegisterController
	UserController        controllers.UserController
	AdminController       controllers.AdminController
	ProblemsController    controllers.ProblemsController
}

func BuildApplication

func BuildApplication(db *db.Database) *Application

Jump to

Keyboard shortcuts

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