api

package
v0.0.0-...-56d3c23 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collage

func Collage(w http.ResponseWriter, r *http.Request)

Types

type CollageRequest

type CollageRequest struct {
	Method        string `in:"query=method;default=album"         validate:"required,oneof=album artist track"`
	TextLocation  string `in:"query=textlocation;default=topleft" validate:"validateTextLocation"`
	Username      string `in:"query=username;required"            validate:"required"`
	Period        string `in:"query=period;default=7day"          validate:"required,validatePeriod"`
	Height        uint   `in:"query=height;default=0"             validate:"gte=0,lte=3000"`
	Width         uint   `in:"query=width;default=0"              validate:"gte=0,lte=3000"`
	Rows          int    `in:"query=rows;default=3"               validate:"required"`
	FontSize      int    `in:"query=fontsize;default=12"          validate:"gte=8,lte=30"`
	Columns       int    `in:"query=columns;default=3"            validate:"required"`
	DisplayAlbum  bool   `in:"query=album;default=false"`
	DisplayTrack  bool   `in:"query=track;default=false"`
	PlayCount     bool   `in:"query=playcount;default=false"`
	DisplayArtist bool   `in:"query=artist;default=false"`
	BoldFont      bool   `in:"query=boldfont;default=false"`
	Grayscale     bool   `in:"query=grayscale;default=false"`
	Webp          bool   `in:"query=webp;default=false"`
}

Jump to

Keyboard shortcuts

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