auth

package
v1.5.0-65 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuthManager added in v1.0.9

type BasicAuthManager struct {
}

func (*BasicAuthManager) Anybody added in v1.0.9

func (c *BasicAuthManager) Anybody() func(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)

func (*BasicAuthManager) Signed added in v1.0.9

func (c *BasicAuthManager) Signed() func(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)

type OwnerAuthManager added in v1.0.9

type OwnerAuthManager struct {
}

func (*OwnerAuthManager) Owner added in v1.0.9

func (c *OwnerAuthManager) Owner(idParam string) func(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)

func (*OwnerAuthManager) OwnerOrAdmin added in v1.0.9

func (c *OwnerAuthManager) OwnerOrAdmin(idParam string) func(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)

type RoleAuthManager added in v1.0.9

type RoleAuthManager struct {
}

func (*RoleAuthManager) Admin added in v1.0.9

func (c *RoleAuthManager) Admin() func(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)

func (*RoleAuthManager) UserInRole added in v1.0.9

func (c *RoleAuthManager) UserInRole(role string) func(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)

func (*RoleAuthManager) UserInRoles added in v1.0.9

func (c *RoleAuthManager) UserInRoles(roles []string) func(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)

Jump to

Keyboard shortcuts

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