role

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Role

type Role interface {
	IntersectRoles(userid string, roles rank.Rank) (rank.Rank, error)
	InsertRoles(userid string, roles rank.Rank) error
	DeleteRoles(userid string, roles rank.Rank) error
	DeleteAllRoles(userid string) error
	GetRoles(userid string, amount, offset int) (rank.Rank, error)
	GetByRole(roleName string, amount, offset int) ([]string, error)
	GetRoleSummary(userid string) (rank.Rank, error)
}

Role manages user roles

type Service

type Service interface {
	governor.Service
	Role
}

func New

func New(roles rolemodel.Repo, kv kvstore.KVStore) Service

New returns a new Role

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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