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
model