approval

package
v0.12.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAppealIDEmptyParam   = errors.New("appeal id is required")
	ErrApprovalIDEmptyParam = errors.New("approval id is required")
	ErrApprovalNotFound     = errors.New("approval not found")
)

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 (s *Service) AddApprover(ctx context.Context, approvalID, email string) error

func (*Service) BulkInsert

func (s *Service) BulkInsert(ctx context.Context, approvals []*domain.Approval) error

func (*Service) DeleteApprover

func (s *Service) DeleteApprover(ctx context.Context, approvalID, email string) error

func (*Service) GetApprovalsTotalCount added in v0.7.5

func (s *Service) GetApprovalsTotalCount(ctx context.Context, filters *domain.ListApprovalsFilter) (int64, error)

func (*Service) ListApprovals

func (s *Service) ListApprovals(ctx context.Context, filters *domain.ListApprovalsFilter) ([]*domain.Approval, error)

type ServiceDeps

type ServiceDeps struct {
	Repository    repository
	PolicyService policyService
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL