Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App represents the main application logic for the image previewer. It includes caching and resizing functionalities.
func NewApp ¶
NewApp creates a new instance of the App with specified caching and resizing configurations.
func (*App) PreviewImage ¶
func (a *App) PreviewImage(w http.ResponseWriter, r *http.Request)
PreviewImage handles the preview image request. It takes a URL parameter for the image and two additional parameters for the width and height of the preview.
Click to show internal directories.
Click to hide internal directories.