admin

package
v0.2.18 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitHandler

func InitHandler(db *gorm.DB) *handler.Error

InitHandler godoc @Summary Initialize the database @Tags Admin @Success 204 @Failure 400 {object} handler.HTTPError @Failure 500 {object} handler.HTTPError @Router /admin/init [post]

func ResetHandler

func ResetHandler(db *gorm.DB) *handler.Error

ResetHandler godoc @Summary Reset the database @Description This will drop all tables and recreate them. @Tags Admin @Success 204 @Failure 400 {object} handler.HTTPError @Failure 500 {object} handler.HTTPError @Router /admin/reset [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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