auth

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2018 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSession

func CreateSession(u *common.User) (*http.Cookie, error)

func DecryptCookie

func DecryptCookie(r *http.Request) (*common.User, error)

func RequireAuthorization

func RequireAuthorization(permission int) common.Handler

func UserPermissions

func UserPermissions(username string, permission int) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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