text2qrcode

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(g *gin.Context)

@Tags Text2QRCode @Summary Kodiert den übergebenen Text in einen QR-Code. Die Parameter werden als JSON übergeben. @Param request body QRCodeRequest true "qrcodeRequest" @Accept aplication/json @Produce image/png @Success 200 {file} binary @Success 500 {string} string @Router /text2qrcode/encode [post]

func EncodeWithQueryString

func EncodeWithQueryString(g *gin.Context)

@Tags Text2QRCode Convert HTML to PDF @Summary Kodiert den übergebenen Text in einen QR-Code. Die Parameter werden als Query-Parameter übergeben. @Param text query string true "Text" @Param errorCorrection query int false "ErrorCorrection" default(1) @Param size query int false "Size" default(250) @Param whiteBorder query bool false "WhiteBorder" default(true) @Produce image/png @Success 200 {file} binary @Success 500 {string} string @Router /text2qrcode/encode [get]

Types

type QRCodeRequest

type QRCodeRequest struct {
	// Der zu kodierende Text
	Text string

	// Der Fehlerkorrekturlevel (0-3)
	// 0 = L
	// 1 = M
	// 2 = Q
	// 3 = H
	ErrorCorrection int

	// Die Größe des QR-Codes in Pixel
	Size int

	// Gibt an, ob ein Rand um den QR-Code gezeichnet werden soll
	WhiteBorder bool
}

Jump to

Keyboard shortcuts

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