mauth

package module
v0.0.0-...-2f39305 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2016 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

mauth

Mabetle Authority

Documentation

Index

Constants

View Source
const ROLE_PREFIX = "ROLE_"

Variables

View Source
var ResRoleMap = [][]string{}

Functions

func AddResRoleMap

func AddResRoleMap(res, roles string)

AddResRoleMap

func CheckRoles

func CheckRoles(needRoles, userRoles string) bool

func InitAuthMap

func InitAuthMap()

func IsCanAccessRes

func IsCanAccessRes(checkRes, userRoles string) bool

IsCanAccessRes

func LoadAuthMapFile

func LoadAuthMapFile(location string) error

LoadAuthMapFile

func PrintIsCanAccessRes

func PrintIsCanAccessRes(checkRes, userRoles string, expect bool)

PrintIsCanAccessRes

func PrintResRoleAuthMap

func PrintResRoleAuthMap()

func QualifyRole

func QualifyRole(role string) string

func QualifyRoles

func QualifyRoles(roles string) []string

func QualifyRolesStr

func QualifyRolesStr(roles string) string

Types

This section is empty.

Directories

Path Synopsis
baase64 encode and decode
baase64 encode and decode
demo
auth_demo command

Jump to

Keyboard shortcuts

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