handlers

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePaste

func CreatePaste(c echo.Context) (err error)

CreatePaste ... Insert into Postgres with our Request Body

func DeleteExpired

func DeleteExpired()

DeleteExpired ... Infinite loop Goroutine that auto deletes expired pastes

func GetLanguages

func GetLanguages(c echo.Context) (err error)

GetLanguages ... Get all of the supported languages

func GetPaste

func GetPaste(c echo.Context) (err error)

GetPaste ... Get a paste where ID equals Req Query Params and Is Not Expired

func GetRawPaste

func GetRawPaste(c echo.Context) (err error)

GetRawPaste ... Get a paste in Plaintext

Types

This section is empty.

Jump to

Keyboard shortcuts

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