Documentation ¶
Index ¶
- type Service
- func (s *Service) AddApprover(ctx context.Context, approvalID, email string) error
- func (s *Service) BulkInsert(ctx context.Context, approvals []*domain.Approval) error
- func (s *Service) DeleteApprover(ctx context.Context, approvalID, email string) error
- func (s *Service) GetApprovalsTotalCount(ctx context.Context, filters *domain.ListApprovalsFilter) (int64, error)
- func (s *Service) ListApprovals(ctx context.Context, filters *domain.ListApprovalsFilter) ([]*domain.Approval, error)
- type ServiceDeps
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(deps ServiceDeps) *Service
func (*Service) AddApprover ¶
func (*Service) BulkInsert ¶
func (*Service) DeleteApprover ¶
func (*Service) GetApprovalsTotalCount ¶ added in v0.7.5
func (*Service) ListApprovals ¶
type ServiceDeps ¶
type ServiceDeps struct { Repository repository PolicyService policyService }
Click to show internal directories.
Click to hide internal directories.