Documentation
¶
Index ¶
- type Service
- func (s *Service) AddMembers(ctx context.Context, groupID uuid.UUID, userIDs []uuid.UUID) error
- func (s *Service) Count(ctx context.Context) (int64, error)
- func (s *Service) Create(ctx context.Context, initializers []*group.Update) (*group.Group, error)
- func (s *Service) Delete(ctx context.Context, groupID uuid.UUID) error
- func (s *Service) Get(ctx context.Context, groupID uuid.UUID) (*group.Group, error)
- func (s *Service) GetByName(ctx context.Context, groupName string) (*group.Group, error)
- func (s *Service) List(ctx context.Context, pagination *model.Pagination, search string) (iterator.Iterator[*group.Group], uint64, error)
- func (s *Service) ListGroupsForUser(ctx context.Context, userID uuid.UUID, pagination *model.Pagination) (iterator.Iterator[*group.Group], uint64, error)
- func (s *Service) ListMembers(ctx context.Context, groupID uuid.UUID, pagination *model.Pagination) (iterator.Iterator[*model.MemberEntry], uint64, error)
- func (s *Service) RemoveMember(ctx context.Context, groupID uuid.UUID, userID uuid.UUID) error
- func (s *Service) RemoveMemberFromAll(ctx context.Context, userID uuid.UUID) error
- func (s *Service) Update(ctx context.Context, groupID uuid.UUID, us []*group.Update) 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 NewService ¶
func NewService(rg repository.Group, ug repository.User, logger *zap.Logger) *Service
func (*Service) AddMembers ¶
func (*Service) ListGroupsForUser ¶
func (*Service) ListMembers ¶
func (*Service) RemoveMember ¶
func (*Service) RemoveMemberFromAll ¶
Click to show internal directories.
Click to hide internal directories.