handlers

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ALLOWED_FORMATS = []string{"html", "odt", "docx", "txt"}

Functions

func HandleFileUpload

func HandleFileUpload(c *gin.Context)

func HandleTextData

func HandleTextData(c *gin.Context)

Types

type TextRequest

type TextRequest struct {
	Text   string `json:"text" binding:"required"`
	ToType string `form:"totype" binding:"required"`
}

type UploadRequest

type UploadRequest struct {
	FromType string `form:"fromtype" binding:"required"`
	ToType   string `form:"totype" binding:"required"`
}

Jump to

Keyboard shortcuts

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