userrole

package
v0.0.0-...-6f239a5 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ModuleName = "role"

Functions

This section is empty.

Types

type InstalledUserRole

type InstalledUserRole struct {
	*UserRole
	UserSystem *usersystem.UserSystem
}

func MustNewAndInstallTo

func MustNewAndInstallTo(s *usersystem.UserSystem) *InstalledUserRole

func NewInstalledUserRole

func NewInstalledUserRole() *InstalledUserRole

type Service

type Service interface {
	MustRoles(uid string) *role.Roles
	//Start start service
	Start() error
	//Stop stop service
	Stop() error
	//Purge purge user data cache
	Purge(string) error
}

type UserRole

type UserRole struct {
	herbsystem.NopModule
	Service
}

func MustGetModule

func MustGetModule(s *usersystem.UserSystem) *UserRole

func New

func New() *UserRole

func (*UserRole) InstallProcess

func (s *UserRole) InstallProcess(ctx context.Context, system herbsystem.System, next func(context.Context, herbsystem.System))

func (*UserRole) ModuleName

func (s *UserRole) ModuleName() string

func (*UserRole) StartService

func (s *UserRole) StartService() error

func (*UserRole) StopService

func (s *UserRole) StopService() error

Jump to

Keyboard shortcuts

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