app

package
Version: v0.0.0-...-1c6ed1f Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitApp

func InitApp(c *config.Config) (*util.AppRouter, *models.StereoDoseDB)

InitApp puts together the Router to use as the app's main HTTP handler

func UserContextMiddleware

func UserContextMiddleware(next http.Handler) http.Handler

UserContextMiddleware inspects the cookie and adds the user to the context For this middleware to work, the user must be authenticated

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL