ctrlbase

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	DB          *db.DB
	Scanner     *scanner.Scanner
	ProxyPrefix string
}

func (*Controller) BaseURL added in v0.15.0

func (c *Controller) BaseURL(r *http.Request) string

func (*Controller) Path

func (c *Controller) Path(rel string) string

Path returns a URL path with the proxy prefix included

func (*Controller) WithCORS

func (c *Controller) WithCORS(next http.Handler) http.Handler

func (*Controller) WithLogging

func (c *Controller) WithLogging(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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