listing

package
v0.0.0-...-d5b4cac Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Package listing handles the web interface. All media are assumed to live in /media Request paths are the CRC64 sum of the path component.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CorsHandler

type CorsHandler struct {
	http.Handler
}

func (*CorsHandler) ServeHTTP

func (h *CorsHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type ListingHandler

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

func NewListingHandler

func NewListingHandler(ctx context.Context, resources fs.FS, conn *sql.Conn) (*ListingHandler, error)

func (*ListingHandler) ServeJSON

func (h *ListingHandler) ServeJSON(w http.ResponseWriter, req *http.Request)

func (*ListingHandler) ServeVideo

func (h *ListingHandler) ServeVideo(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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