Versions in this module Expand all Collapse all v0 v0.8.0 Jun 30, 2023 Changes in this version + const AuditKeyResoruceBulkUpsert + const AuditKeyResourceBatchDelete + const AuditKeyResourceDelete + const AuditKeyResourceUpdate + const ReservedDetailsKeyMetadata + var ErrEmptyIDParam = errors.New("id can't be empty") + var ErrRecordNotFound = errors.New("record not found") + type Service struct + func NewService(deps ServiceDeps) *Service + func (s *Service) BatchDelete(ctx context.Context, ids []string) error + func (s *Service) BulkUpsert(ctx context.Context, resources []*domain.Resource) error + func (s *Service) Delete(ctx context.Context, id string) error + func (s *Service) Find(ctx context.Context, filter domain.ListResourcesFilter) ([]*domain.Resource, error) + func (s *Service) Get(ctx context.Context, ri *domain.ResourceIdentifier) (*domain.Resource, error) + func (s *Service) GetOne(ctx context.Context, id string) (*domain.Resource, error) + func (s *Service) Update(ctx context.Context, r *domain.Resource) error + type ServiceDeps struct + AuditLogger auditLogger + Logger log.Logger + Repository repository