controllers

package
v0.0.0-...-f2dd2ce Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

RBAC权限包

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessDecision

func AccessDecision(params []string, accesslist map[string]bool) bool

To test whether permissions

func AccessRegister

func AccessRegister()

check access and register user's nodes 权限过滤器

func CheckAccess

func CheckAccess(params []string) bool

Determine whether need to verify

func GetAccessList

func GetAccessList(uid int64) (map[string]bool, error)

Access permissions list

Types

type AccessNode

type AccessNode struct {
	Id        int64
	Name      string
	Childrens []*AccessNode
}

type ErrorController

type ErrorController struct {
	beego.Controller
}

func (*ErrorController) Error404

func (c *ErrorController) Error404()

func (*ErrorController) Error501

func (c *ErrorController) Error501()

func (*ErrorController) ErrorDb

func (c *ErrorController) ErrorDb()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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