controller

package
v0.0.0-...-8cdc3bd Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MyStore store.Store

MyStore is a global storage reference for all controllers

Functions

func AssignFaceToBoxHandler

func AssignFaceToBoxHandler(c *gin.Context)

AssignFaceToBoxHandler assigns the specified face in the database (or creates a new one if necessary) to the provided box

func ClassifyFacesHandler

func ClassifyFacesHandler(c *gin.Context)

ClassifyFacesHandler runs the face classifier on all unassigned images

func CreateJokeHandler

func CreateJokeHandler(c *gin.Context)

CreateJokeHandler create a joke

func DeleteJokeHandler

func DeleteJokeHandler(c *gin.Context)

DeleteJokeHandler deletes specific joke with provided ID

func DeletePhotoHandler

func DeletePhotoHandler(c *gin.Context)

DeletePhotoHandler deletes a specific photo by ID

func GetFaceHandler

func GetFaceHandler(c *gin.Context)

GetFaceHandler gets a specific face by ID

func GetFacesHandler

func GetFacesHandler(c *gin.Context)

GetFacesHandler gets all faces

func GetJokesHandler

func GetJokesHandler(c *gin.Context)

GetJokesHandler gets a list of all jokes stored in the database

func GetLabelHandler

func GetLabelHandler(c *gin.Context)

GetLabelHandler gets a specific label by id

func GetLabelsHandler

func GetLabelsHandler(c *gin.Context)

GetLabelsHandler gets all labels

func GetPhotoHandler

func GetPhotoHandler(c *gin.Context)

GetPhotoHandler gets a specific photo by ID

func GetPhotosByMonthHandler

func GetPhotosByMonthHandler(c *gin.Context)

GetPhotosByMonthHandler gets all photos

func GetPhotosHandler

func GetPhotosHandler(c *gin.Context)

GetPhotosHandler gets all photos

func GetUnassignedBoxesHandler

func GetUnassignedBoxesHandler(c *gin.Context)

GetUnassignedBoxesHandler gets all boxes that are not assigned to a person

func LikeJoke

func LikeJoke(c *gin.Context)

LikeJoke increments the likes of a particular joke Item

func PreUploadMobileHandler

func PreUploadMobileHandler(c *gin.Context)

PreUploadMobileHandler handles takes data about photos that the mobile device is trying to upload and returns the JSON containing the new files that should be uploaded

func SearchHandler

func SearchHandler(c *gin.Context)

SearchHandler handles answering a query

func UploadHandler

func UploadHandler(c *gin.Context)

UploadHandler handles the upload of multiple files to "photo_storage/" folder

func UploadMobileHandler

func UploadMobileHandler(c *gin.Context)

UploadMobileHandler handles the upload of multiple files to "photo_storage/" folder from a mobile device. The EXIF data arrives separately in the request

Types

This section is empty.

Jump to

Keyboard shortcuts

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