controller

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DELETEAllClipData

func DELETEAllClipData(ctx *gin.Context)

DELETEAllClipData is a DELETE HTTP method; deletes all the clips for a given user.

func GETAllClipData

func GETAllClipData(ctx *gin.Context)

GETAllClipData is a GET HTTP method; returns `all clips` JSON data for a given user.

func GETClipData

func GETClipData(ctx *gin.Context)

GETClipData is a GET HTTP method; returns a `single clip` JSON data for a given user and messageID.

func HomepageHandler added in v1.2.0

func HomepageHandler(ctx *gin.Context)

HomepageHandler is a GET HTTP method; returns a welcome message.

func POSTClipData

func POSTClipData(ctx *gin.Context)

POSTClipData is POST HTTP method; For a given user with a valid clips JSON and stores it in DB. returns appropriate response with status code.

func POSTCreateUser

func POSTCreateUser(ctx *gin.Context)

POSTCreateUser is POST HTTP method; accepts a user entry in the database for a given valid JSON.

func POSTLogin

func POSTLogin(ctx *gin.Context)

POSTLogin is POST HTTP method, validates credentials of an existing user and returns a JWT.

Types

This section is empty.

Jump to

Keyboard shortcuts

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