issuerelated

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IssueRelated

type IssueRelated struct {
	// contains filtered or unexported fields
}

func New

func New(options ...Option) *IssueRelated

New 新建 issue stream 对象

func (*IssueRelated) AddRelatedIssue

AddRelatedIssue 添加issue关联关系

func (*IssueRelated) AfterIssueInclusionRelationChange added in v1.5.0

func (ir *IssueRelated) AfterIssueInclusionRelationChange(id uint64) error

func (*IssueRelated) DeleteIssueRelation

func (ir *IssueRelated) DeleteIssueRelation(issueID, relatedIssueID uint64, relationTypes []string) error

DeleteIssueRelation 删除issue关联关系

func (*IssueRelated) GetIssueRelationsByIssueIDs

func (ir *IssueRelated) GetIssueRelationsByIssueIDs(issueID uint64, relationType []string) ([]uint64, []uint64, error)

GetIssueRelationsByIssueIDs 获取issue的关联关系

func (*IssueRelated) ValidIssueRelationType added in v1.5.0

func (ir *IssueRelated) ValidIssueRelationType(id uint64, relationType apistructs.IssueType) error

type Option

type Option func(*IssueRelated)

Option 定义 IssueStream 对象配置选项

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle 配置 bundle

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 配置 db client

Jump to

Keyboard shortcuts

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