handlers

package
v0.0.0-...-bb99949 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteImg

func DeleteImg(db *sql.DB) http.HandlerFunc

func GetAllImages

func GetAllImages(db *sql.DB) http.HandlerFunc

func GetOneImgWithMetadata

func GetOneImgWithMetadata(db *sql.DB) http.HandlerFunc

func UpdateImgMetadata

func UpdateImgMetadata(db *sql.DB) http.HandlerFunc

func UploadImgWithMetadata

func UploadImgWithMetadata(db *sql.DB) http.HandlerFunc

Types

type ImageMetadata

type ImageMetadata struct {
	ID          int    `json:"id"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Tags        string `json:"tags"`
	FilePath    string `json:"file_path"`
	CreatedAt   string `json:"created_at"`
}

Jump to

Keyboard shortcuts

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