addon

package
v0.0.0-...-618419c Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultMiddleware

func DefaultMiddleware(next http.Handler) http.Handler

Types

type Addon

type Addon struct {
	Manifest *manifest.Manifest
	Mux      *http.ServeMux
}

func New

func New(m *manifest.Manifest) *Addon

func (*Addon) HandleManifest

func (a *Addon) HandleManifest()

Serve the cached manifest. This method uses RLock() for concurrent reads.

func (*Addon) HandleMovieCatalog

func (a *Addon) HandleMovieCatalog(name string, h func(w http.ResponseWriter, r *http.Request))

func (*Addon) HandleSeriesCatalog

func (a *Addon) HandleSeriesCatalog(name string, h func(w http.ResponseWriter, r *http.Request))

func (*Addon) ListenAndServe

func (a *Addon) ListenAndServe(port string)

Jump to

Keyboard shortcuts

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