levelauth

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LevelAuth

type LevelAuth interface {
	SetAuthLevel(w http.ResponseWriter, req *http.Request, level uint32) error
}

LevelAuth is an interface to support setting the auth level in a session

func NewLevelAuth

func NewLevelAuth(ses sessions.Sessions) (LevelAuth, authrouter.CheckAuth)

NewLevelAuth returns a LevelAuth and a authrouter.CheckAuth

Jump to

Keyboard shortcuts

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