handlers

package
v0.0.0-...-1e1dff8 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileHandlers

type FileHandlers struct {
	// contains filtered or unexported fields
}

func (*FileHandlers) Handle

func (h *FileHandlers) Handle(w http.ResponseWriter, r *http.Request)

Handle is responsible for handling incoming files requests

type Handlers

type Handlers struct {
	Static *StaticHandlers
	File   *FileHandlers
}

func New

func New(
	saveDir string,
	logger *slog.Logger,
	template *templates.Template,
) Handlers

type StaticHandlers

type StaticHandlers struct {
	// contains filtered or unexported fields
}

func (*StaticHandlers) HandleFonts

func (h *StaticHandlers) HandleFonts(w http.ResponseWriter, r *http.Request)

HandleFonts is responsible for handling font requests.

func (*StaticHandlers) HandleMain

func (h *StaticHandlers) HandleMain(w http.ResponseWriter, r *http.Request)

HandleMain is responsible for handling requests to the main page.

Jump to

Keyboard shortcuts

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