Documentation
¶
Index ¶
- Variables
- type AssignToPullReqOut
- type Service
- func (s *Service) AssignToPullReq(ctx context.Context, principalID int64, pullreqID int64, repoID int64, ...) (*AssignToPullReqOut, error)
- func (s *Service) Backfill(ctx context.Context, pullreq *types.PullReq) error
- func (s *Service) BackfillMany(ctx context.Context, pullreqs []*types.PullReq) error
- func (s *Service) Define(ctx context.Context, principalID int64, spaceID, repoID *int64, ...) (*types.Label, error)
- func (s *Service) DefineValue(ctx context.Context, principalID int64, labelID int64, ...) (*types.LabelValue, error)
- func (s *Service) Delete(ctx context.Context, spaceID, repoID *int64, key string) error
- func (s *Service) DeleteValue(ctx context.Context, spaceID, repoID *int64, labelKey string, value string) error
- func (s *Service) Find(ctx context.Context, spaceID, repoID *int64, key string) (*types.Label, error)
- func (s *Service) FindByID(ctx context.Context, labelID int64) (*types.Label, error)
- func (s *Service) List(ctx context.Context, spaceID, repoID *int64, filter *types.LabelFilter) ([]*types.Label, int64, error)
- func (s *Service) ListPullReqLabels(ctx context.Context, repo *types.Repository, spaceID int64, pullreqID int64, ...) (*types.ScopesLabels, int64, error)
- func (s *Service) ListValues(ctx context.Context, spaceID, repoID *int64, labelKey string, ...) ([]*types.LabelValue, error)
- func (s *Service) Save(ctx context.Context, principalID int64, spaceID, repoID *int64, ...) (*types.LabelWithValues, error)
- func (s *Service) UnassignFromPullReq(ctx context.Context, repoID, repoParentID, pullreqID, labelID int64) (*types.Label, *types.LabelValue, error)
- func (s *Service) Update(ctx context.Context, principalID int64, spaceID, repoID *int64, key string, ...) (*types.Label, error)
- func (s *Service) UpdateValue(ctx context.Context, principalID int64, labelID int64, value string, ...) (*types.LabelValue, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideLabel, )
Functions ¶
This section is empty.
Types ¶
type AssignToPullReqOut ¶
type AssignToPullReqOut struct {
Label *types.Label
PullReqLabel *types.PullReqLabel
OldLabelValue *types.LabelValue
NewLabelValue *types.LabelValue
ActivityType enum.PullReqLabelActivityType
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New( tx dbtx.Transactor, spaceStore store.SpaceStore, labelStore store.LabelStore, labelValueStore store.LabelValueStore, pullReqLabelAssignmentStore store.PullReqLabelAssignmentStore, ) *Service
func ProvideLabel ¶
func ProvideLabel( tx dbtx.Transactor, spaceStore store.SpaceStore, labelStore store.LabelStore, labelValueStore store.LabelValueStore, pullReqLabelStore store.PullReqLabelAssignmentStore, ) *Service
func (*Service) AssignToPullReq ¶
func (*Service) BackfillMany ¶
func (*Service) DefineValue ¶
func (s *Service) DefineValue( ctx context.Context, principalID int64, labelID int64, in *types.DefineValueInput, ) (*types.LabelValue, error)
func (*Service) DeleteValue ¶
func (*Service) ListPullReqLabels ¶
func (s *Service) ListPullReqLabels( ctx context.Context, repo *types.Repository, spaceID int64, pullreqID int64, filter *types.AssignableLabelFilter, ) (*types.ScopesLabels, int64, error)
func (*Service) ListValues ¶
func (s *Service) ListValues( ctx context.Context, spaceID, repoID *int64, labelKey string, filter *types.ListQueryFilter, ) ([]*types.LabelValue, error)
func (*Service) UnassignFromPullReq ¶
func (*Service) UpdateValue ¶
Click to show internal directories.
Click to hide internal directories.