Documentation ¶
Index ¶
- type MockRoleCacheService
- type RoleCacheService
- type Service
- func (r *Service) Create(uow port.AuthUnitOfWork, role domain.Role) error
- func (r *Service) Delete(uow port.AuthUnitOfWork, uuidStr string, deletedBy uint64) error
- func (r *Service) Get(uow port.AuthUnitOfWork, uuidStr string) (*domain.Role, error)
- func (r *Service) GetPermissions(uow port.AuthUnitOfWork, uuidStr string) (*domain.Role, error)
- func (r *Service) List(ctx context.Context, uow port.AuthUnitOfWork) ([]*domain.Role, error)
- func (r *Service) SetRoleCache(service port.RoleCacheService)
- func (r *Service) SyncPermissions(uow port.AuthUnitOfWork, uuidStr string, permissionUUIDsStr []string) error
- func (r *Service) Update(ctx context.Context, uow port.AuthUnitOfWork, role domain.Role, uuidStr string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRoleCacheService ¶
func (*MockRoleCacheService) Get ¶
func (r *MockRoleCacheService) Get(ctx context.Context, key string) (*domain.RoleKeyType, error)
func (*MockRoleCacheService) SetBulk ¶
func (r *MockRoleCacheService) SetBulk(ctx context.Context, items map[string]domain.RoleKeyType) error
type RoleCacheService ¶
type RoleCacheService struct {
// contains filtered or unexported fields
}
func NewRoleCacheService ¶
func NewRoleCacheService(cache port.RoleCache) RoleCacheService
func (RoleCacheService) Get ¶
func (r RoleCacheService) Get(ctx context.Context, key string) (*domain.RoleKeyType, error)
func (RoleCacheService) SetBulk ¶
func (r RoleCacheService) SetBulk(ctx context.Context, items map[string]domain.RoleKeyType) error
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(roleCache port.RoleCacheService) *Service
func (*Service) GetPermissions ¶
func (*Service) SetRoleCache ¶
func (r *Service) SetRoleCache(service port.RoleCacheService)
func (*Service) SyncPermissions ¶
Click to show internal directories.
Click to hide internal directories.