middleware

package
v0.0.0-...-9588916 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2019 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectTemplates

func CollectTemplates(relatePath string) error

func Plugin

func Plugin(controller HttpController) http.HandlerFunc

Types

type HttpController

type HttpController func(model *viewmodels.WebModel, req *http.Request) (interface{}, *weberrors.WebError)

when return string will render template when return obj will convert to json

func LoggingManager

func LoggingManager(model *viewmodels.WebModel, w http.ResponseWriter, req *http.Request, wrapperedController HttpController) HttpController

func SessisonManager

func SessisonManager(model *viewmodels.WebModel, w http.ResponseWriter, req *http.Request, wrapperedController HttpController) HttpController

type HttpMiddleWare

type HttpMiddleWare func(model *viewmodels.WebModel, w http.ResponseWriter, req *http.Request) HttpController

Jump to

Keyboard shortcuts

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