Documentation
¶
Index ¶
- Variables
- type ListService
- func (c *ListService) BackfillChecks(ctx context.Context, list []types.PullReqRepo) error
- func (c *ListService) BackfillMetadata(ctx context.Context, list []types.PullReqRepo, ...) error
- func (c *ListService) BackfillMetadataForPullReq(ctx context.Context, repo *types.Repository, pr *types.PullReq, ...) error
- func (c *ListService) BackfillMetadataForRepo(ctx context.Context, repo *types.Repository, list []*types.PullReq, ...) error
- func (c *ListService) BackfillRules(ctx context.Context, list []types.PullReqRepo) error
- func (c *ListService) BackfillStats(ctx context.Context, pr *types.PullReq) error
- func (c *ListService) ListForSpace(ctx context.Context, session *auth.Session, space *types.Space, ...) ([]types.PullReqRepo, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideService, ProvideListService, )
Functions ¶
This section is empty.
Types ¶
type ListService ¶
type ListService struct {
// contains filtered or unexported fields
}
func NewListService ¶
func NewListService( tx dbtx.Transactor, git git.Interface, authorizer authz.Authorizer, spaceStore store.SpaceStore, repoStore store.RepoStore, repoGitInfoCache store.RepoGitInfoCache, pullreqStore store.PullReqStore, checkStore store.CheckStore, labelSvc *label.Service, protectionManager *protection.Manager, ) *ListService
func ProvideListService ¶
func ProvideListService( tx dbtx.Transactor, git git.Interface, authorizer authz.Authorizer, spaceStore store.SpaceStore, repoStore store.RepoStore, repoGitInfoCache store.RepoGitInfoCache, pullreqStore store.PullReqStore, checkStore store.CheckStore, labelSvc *label.Service, protectionManager *protection.Manager, ) *ListService
func (*ListService) BackfillChecks ¶
func (c *ListService) BackfillChecks( ctx context.Context, list []types.PullReqRepo, ) error
BackfillChecks collects the check metadata for the provided list of pull requests.
func (*ListService) BackfillMetadata ¶
func (c *ListService) BackfillMetadata( ctx context.Context, list []types.PullReqRepo, options types.PullReqMetadataOptions, ) error
func (*ListService) BackfillMetadataForPullReq ¶
func (c *ListService) BackfillMetadataForPullReq( ctx context.Context, repo *types.Repository, pr *types.PullReq, options types.PullReqMetadataOptions, ) error
func (*ListService) BackfillMetadataForRepo ¶
func (c *ListService) BackfillMetadataForRepo( ctx context.Context, repo *types.Repository, list []*types.PullReq, options types.PullReqMetadataOptions, ) error
func (*ListService) BackfillRules ¶
func (c *ListService) BackfillRules( ctx context.Context, list []types.PullReqRepo, ) error
BackfillRules collects the rule metadata for the provided list of pull requests.
func (*ListService) BackfillStats ¶
func (*ListService) ListForSpace ¶
func (c *ListService) ListForSpace( ctx context.Context, session *auth.Session, space *types.Space, includeSubspaces bool, filter *types.PullReqFilter, ) ([]types.PullReqRepo, error)
ListForSpace returns a list of pull requests and their respective repositories for a specific space.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, config *types.Config, gitReaderFactory *events.ReaderFactory[*gitevents.Reader], pullreqEvReaderFactory *events.ReaderFactory[*pullreqevents.Reader], pullreqEvReporter *pullreqevents.Reporter, git git.Interface, repoGitInfoCache store.RepoGitInfoCache, repoStore store.RepoStore, pullreqStore store.PullReqStore, activityStore store.PullReqActivityStore, codeCommentView store.CodeCommentView, codeCommentMigrator *codecomments.Migrator, fileViewStore store.PullReqFileViewStore, principalInfoCache store.PrincipalInfoCache, bus pubsub.PubSub, urlProvider url.Provider, sseStreamer sse.Streamer, ) (*Service, error)
func ProvideService ¶
func ProvideService(ctx context.Context, config *types.Config, gitReaderFactory *events.ReaderFactory[*gitevents.Reader], pullReqEvFactory *events.ReaderFactory[*pullreqevents.Reader], pullReqEvReporter *pullreqevents.Reporter, git git.Interface, repoGitInfoCache store.RepoGitInfoCache, repoStore store.RepoStore, pullreqStore store.PullReqStore, activityStore store.PullReqActivityStore, principalInfoCache store.PrincipalInfoCache, codeCommentView store.CodeCommentView, codeCommentMigrator *codecomments.Migrator, fileViewStore store.PullReqFileViewStore, pubsub pubsub.PubSub, urlProvider url.Provider, sseStreamer sse.Streamer, ) (*Service, error)
Click to show internal directories.
Click to hide internal directories.