middleware

package
v3.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(w http.ResponseWriter, r *http.Request) *model.AppError

Authenticate middleware verifies the request was made by a logged in Mattermost user. this is checked by the presence of Mattermost-User-Id HTTP header.

Types

type Middleware

type Middleware func(w http.ResponseWriter, r *http.Request) *model.AppError

Middleware type implements any logic required to be performed before the endpoint implementation is executed.

Jump to

Keyboard shortcuts

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