approval

package
v0.10.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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 (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