Documentation ¶
Index ¶
- Variables
- type Filter
- type Filters
- type Policy
- type RelationService
- type Repository
- type RoleService
- type Service
- func (s Service) AssignRole(ctx context.Context, pol Policy) error
- func (s Service) Create(ctx context.Context, policy Policy) (Policy, error)
- func (s Service) Delete(ctx context.Context, id string) error
- func (s Service) Get(ctx context.Context, id string) (Policy, error)
- func (s Service) List(ctx context.Context, f Filter) ([]Policy, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type RelationService ¶
type Repository ¶
type RoleService ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repository Repository, relationService RelationService, roleService RoleService) *Service
func (Service) AssignRole ¶
AssignRole Note: ideally this should be in a single transaction
Click to show internal directories.
Click to hide internal directories.