web

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaintenanceModule

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

func NewMaintenance

func NewMaintenance() *MaintenanceModule

NewMaintenance returns a module that routes only static assets, and returns a code 503 maintenance message template to all other requests.

func (*MaintenanceModule) ETagCache

func (m *MaintenanceModule) ETagCache() cache.Cache[string, eTagCacheEntry]

ETagCache implements withETagCache.

func (*MaintenanceModule) Route

func (m *MaintenanceModule) Route(r *router.Router, mi ...gin.HandlerFunc)

type Module

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

func New

func New(db db.DB, processor *processing.Processor, cookiePolicy apiutil.CookiePolicy) *Module

func (*Module) ETagCache

func (m *Module) ETagCache() cache.Cache[string, eTagCacheEntry]

ETagCache implements withETagCache.

func (*Module) Route

func (m *Module) Route(r *router.Router, mi ...gin.HandlerFunc)

Route attaches the assets filesystem and profile, status, and other web handlers to the router.

func (*Module) SettingsPanelHandler

func (m *Module) SettingsPanelHandler(c *gin.Context)

Jump to

Keyboard shortcuts

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