rbac

package
v0.0.0-...-3361740 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package rbac provides a lightweight role-based access control

Index

Constants

View Source
const (
	AdminRole = "admin"

	UserRole = "user"

	GrpcHealthKey = "/grpc.health.v1.Health/Check"

	HealthRole = "health"
)

Variables

This section is empty.

Functions

func AddRoles

func AddRoles(api string, service string, roles map[string][]string)

func HasRights

func HasRights(key string, roles []string) error

func Roles

func Roles() map[string][]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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