privilege

package
Version: v3.1.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidPrivilege

func ValidPrivilege() gin.HandlerFunc

Types

type Privilege

type Privilege struct {
	UserName string
	APIAddr  string
	OwnerID  string
	// contains filtered or unexported fields
}

func NewPrivilege

func NewPrivilege(userName, APIAddr, ownerID, language string) (*Privilege, error)

func (*Privilege) GetAllMainLineObject

func (p *Privilege) GetAllMainLineObject() []string

GetAllMainLineObject get all main line object

func (*Privilege) GetAppRole

func (p *Privilege) GetAppRole() []string

GetAppRole get app role

func (*Privilege) GetRolePrivilege

func (p *Privilege) GetRolePrivilege(objID string, role string) []string

GetRolePrivilege get role privilege

func (*Privilege) GetUserPrivilegeApp

func (p *Privilege) GetUserPrivilegeApp(appRole []string) map[int64][]string

GetUserPrivilegeApp get user privilege app

func (*Privilege) GetUserPrivilegeConfig

func (p *Privilege) GetUserPrivilegeConfig() (map[string][]string, []string)

GetUserPrivilegeConfig get user privilege config

Source Files

Jump to

Keyboard shortcuts

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