Documentation ¶
Overview ¶
Package routes provides HTTP endpoint handlers for the Kiosk application.
It includes functions for rendering pages, handling API requests, and managing caching of page data. This package is responsible for defining the web routes and their corresponding handler functions.
Index ¶
- Variables
- func Clock(baseConfig *config.Config) echo.HandlerFunc
- func DrawFaceOnImage(imgBytes []byte, i *immich.ImmichAsset) []byte
- func FlushCache(c echo.Context) error
- func Home(baseConfig *config.Config) echo.HandlerFunc
- func NewImage(baseConfig *config.Config) echo.HandlerFunc
- func NewRawImage(baseConfig *config.Config) echo.HandlerFunc
- func PreviousImage(baseConfig *config.Config) echo.HandlerFunc
- func ProcessViewImageData(requestConfig config.Config, c echo.Context, isPrefetch bool) (views.ImageData, error)
- func ProcessViewImageDataWithRatio(imageOrientation immich.ImageOrientation, requestConfig config.Config, ...) (views.ImageData, error)
- func RefreshCheck(baseConfig *config.Config) echo.HandlerFunc
- func Render(ctx echo.Context, statusCode int, t templ.Component) error
- func RenderError(c echo.Context, err error, message string) error
- func ShouldDrawFacesOnImages() bool
- func Sleep(baseConfig *config.Config) echo.HandlerFunc
- func Weather(baseConfig *config.Config) echo.HandlerFunc
- type PersonOrAlbum
- type RequestData
Constants ¶
This section is empty.
Variables ¶
var ( KioskVersion string ViewDataCache *cache.Cache )
Functions ¶
func DrawFaceOnImage ¶ added in v0.12.0
func DrawFaceOnImage(imgBytes []byte, i *immich.ImmichAsset) []byte
func FlushCache ¶ added in v0.11.0
func FlushCache(c echo.Context) error
func NewImage ¶
NewImage returns an echo.HandlerFunc that handles requests for new images. It manages image processing, caching, and prefetching based on the configuration.
func NewRawImage ¶ added in v0.10.0
NewRawImage returns an echo.HandlerFunc that handles requests for raw images. It processes the image without any additional transformations and returns it as a blob.
func PreviousImage ¶ added in v0.13.0
PreviousImage returns an echo.HandlerFunc that handles requests for previous images. It retrieves the previous images from the history and renders them.
func ProcessViewImageData ¶ added in v0.11.0
func ProcessViewImageDataWithRatio ¶ added in v0.11.0
func RefreshCheck ¶ added in v0.11.2
RefreshCheck endpoint to check if device requires a refresh
func Render ¶ added in v0.4.0
This custom Render replaces Echo's echo.Context.Render() with templ's templ.Component.Render().
func RenderError ¶ added in v0.11.0
func ShouldDrawFacesOnImages ¶ added in v0.12.0
func ShouldDrawFacesOnImages() bool