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 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 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 Sleep(baseConfig *config.Config) echo.HandlerFunc
- type PersonOrAlbum
- type RequestData
Constants ¶
This section is empty.
Variables ¶
var ( KioskVersion string ViewDataCache *cache.Cache )
Functions ¶
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 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().