server

package
v0.0.0-...-b985c81 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccessControlAllowOrigin  = "*"
	AccessControlAllowMethods = "GET" // "POST, GET, OPTIONS, PUT, DELETE"
	AccessControlAllowHeaders = ""    /* 217-byte string literal not displayed */
)

Variables

This section is empty.

Functions

func AccessControlAllowMiddleware

func AccessControlAllowMiddleware(next http.Handler) http.Handler

AccessControlAllowMiddleware headers

func AuthenticatedMiddleware

func AuthenticatedMiddleware(next http.Handler) http.Handler

AuthenticatedMiddleware ensures that the user is authenticated before allowing access to the route. Accepts a token in the Authorization header or as a cookie.

func GetRouter

func GetRouter() *mux.Router

GetRouter returns a list of routes available and being listened too on the server

func Start

func Start()

Start initiates the HTTP server

Types

This section is empty.

Jump to

Keyboard shortcuts

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