kmgPermission

package
v0.0.0-...-05317bf Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type And

type And []IsAllower

如果这些判断的某一个失败,则该权限失败,如果都通过,则该权限通过.

func (And) IsAllow

func (and And) IsAllow(args map[string]string) bool

type IsAllower

type IsAllower interface {
	IsAllow(args map[string]string) bool
}
var True IsAllower = tTrue{}

type Not

type Not struct {
	IsAllower IsAllower
}

func (Not) IsAllow

func (not Not) IsAllow(args map[string]string) bool

type Or

type Or []IsAllower

如果这些判断的某一个通过,则该权限通过,如果都不通过,则不通过.

func (Or) IsAllow

func (or Or) IsAllow(args map[string]string) bool

type Prefix

type Prefix string

func (Prefix) IsAllow

func (prefix Prefix) IsAllow(args map[string]string) bool

Jump to

Keyboard shortcuts

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