middleware

package
v0.0.0-...-e0e71cc Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func API

func API(handler http.HandlerFunc) http.HandlerFunc

API wrapper for all "API" middlewares (REST-ful API endpoints). Only this function must be used in routes and here must be registered all middlewares.

func Web

func Web(handler http.HandlerFunc) http.HandlerFunc

Web wrapper for all "web" middlewares (regular web pages with server-side rendering). Only this function must be used in routes and here must be registered all middlewares.

Types

This section is empty.

Jump to

Keyboard shortcuts

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