Documentation
¶
Index ¶
- type Service
- func (s *Service) Create(ctx context.Context, input subject.CreateInput) (subject.Subject, error)
- func (s *Service) Delete(ctx context.Context, id models.NamespacedID) error
- func (s *Service) GetById(ctx context.Context, id models.NamespacedID) (subject.Subject, error)
- func (s *Service) GetByIdOrKey(ctx context.Context, orgId string, idOrKey string) (subject.Subject, error)
- func (s *Service) GetByKey(ctx context.Context, key models.NamespacedKey) (subject.Subject, error)
- func (s *Service) List(ctx context.Context, orgId string, params subject.ListParams) (pagination.Result[subject.Subject], error)
- func (s *Service) RegisterHooks(hooks ...models.ServiceHook[subject.Subject])
- func (s *Service) Update(ctx context.Context, input subject.UpdateInput) (subject.Subject, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) GetByIdOrKey ¶
func (s *Service) GetByIdOrKey(ctx context.Context, orgId string, idOrKey string) (subject.Subject, error)
GetByIdOrKey gets a subject by ID or key
func (*Service) List ¶
func (s *Service) List(ctx context.Context, orgId string, params subject.ListParams) (pagination.Result[subject.Subject], error)
List lists subjects
func (*Service) RegisterHooks ¶
func (s *Service) RegisterHooks(hooks ...models.ServiceHook[subject.Subject])
Click to show internal directories.
Click to hide internal directories.