web

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: BSD-3-Clause Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheControl

func CacheControl(h http.Handler) http.Handler

Types

type AdminLogin

type AdminLogin struct {
	IP                 string
	Hostname           string
	LastActive         time.Time
	LastActiveReadable string
}

type HTTP

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

func New

func New(dao *dbl.DAO, s3ao *s3.S3AO, geodb *geoip.DAO, wm *workspace.Manager, config *ds.Config, metrics *ds.Metrics, metricsRegistry *prometheus.Registry) *HTTP

New creates a new HTTP server instance

func (*HTTP) Error

func (h *HTTP) Error(w http.ResponseWriter, r *http.Request, internal string, external string, errno int, statusCode int)

func (*HTTP) Init

func (h *HTTP) Init() error

func (*HTTP) ParseTemplates

func (h *HTTP) ParseTemplates() *template.Template

Parse all templates

func (*HTTP) Run

func (h *HTTP) Run()

func (*HTTP) Stop

func (h *HTTP) Stop()

Stop gracefully shuts down background goroutines

Jump to

Keyboard shortcuts

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