controller

package
v0.0.0-...-6db6f14 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Session       *scs.SessionManager
	Configuration *configuration.Environment
	Log           *zap.Logger
}

Handler for controllers

func New

New generates a new Handler

func (*Handler) Content

func (h *Handler) Content(w http.ResponseWriter, r *http.Request)

Content serves content

func (*Handler) Login

func (h *Handler) Login(w http.ResponseWriter, r *http.Request)

Login handles login

func (*Handler) Logout

func (h *Handler) Logout(w http.ResponseWriter, r *http.Request)

Logout handles logout

Jump to

Keyboard shortcuts

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