utils

package
v0.0.0-...-9a7bc8d Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MicroError

func MicroError(e error) error

MicroError of errors.Error

func MicroErrorDetail

func MicroErrorDetail(e error) string

MicroErrorDetail of errors.Error - can't be nil

Types

type ACL

type ACL struct {
	// contains filtered or unexported fields
}

ACL Util

func NewACL

func NewACL(token *pb.TokenPayload, appID string) *ACL

NewACL visitor ask appID

func (*ACL) Check

func (a *ACL) Check(scopes ...string) bool

Check Data <or>

func (*ACL) Display

func (a *ACL) Display(uuids ...string) bool

Display uuid's Data <or>

func (*ACL) Visitor

func (a *ACL) Visitor() *metaPb.Visitor

Visitor of ACL

Jump to

Keyboard shortcuts

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