controllers

package
v0.0.0-...-b86da1b Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(next http.Handler) http.Handler

func Cleanup

func Cleanup(w http.ResponseWriter, r *http.Request)

Cleanup inspects all packages in server, and remove ones who are too old

func DeletePackage

func DeletePackage(w http.ResponseWriter, r *http.Request)

DeletePackage is used to remove a package from server.

func GetData

func GetData(w http.ResponseWriter, r *http.Request)

GetData is the only controller used to poll data from debian caches.

func Metrics

func Metrics(w http.ResponseWriter, _ *http.Request)

func StopServer

func StopServer(w http.ResponseWriter, r *http.Request)

StopServer gracefully stops a server

Types

This section is empty.

Jump to

Keyboard shortcuts

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