db

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*gorm.DB
}

func (*Client) CreateDevFlow

func (db *Client) CreateDevFlow(f *DevFlow) error

func (*Client) DeleteDevFlow

func (db *Client) DeleteDevFlow(id string) error

func (*Client) GetDevFlow

func (db *Client) GetDevFlow(id string) (f *DevFlow, err error)

func (*Client) GetDevFlowByUnique

func (db *Client) GetDevFlowByUnique(appID, issueID uint64, branch string) (f *DevFlow, err error)

func (*Client) ListDevFlowByAppIDAndBranch

func (db *Client) ListDevFlowByAppIDAndBranch(appID uint64, branch string) (fs []DevFlow, err error)

func (*Client) ListDevFlowByFlowRuleNameAndAppIDs

func (db *Client) ListDevFlowByFlowRuleNameAndAppIDs(flowRuleName string, appIDs ...uint64) (fs []DevFlow, err error)

func (*Client) ListDevFlowByIssueID

func (db *Client) ListDevFlowByIssueID(issueID uint64) (fs []DevFlow, err error)

func (*Client) UpdateDevFlow

func (db *Client) UpdateDevFlow(f *DevFlow) error

type DevFlow

type DevFlow struct {
	Model
	Scope
	Operator

	Branch               string
	IssueID              uint64
	FlowRuleName         string
	JoinTempBranchStatus string
	IsJoinTempBranch     bool
}

func (*DevFlow) Covert

func (f *DevFlow) Covert() *pb.DevFlow

func (DevFlow) TableName

func (DevFlow) TableName() string

type Model

type Model struct {
	ID        fields.UUID `gorm:"primaryKey"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt soft_delete.DeletedAt
}

type Operator

type Operator struct {
	Creator string
}

type Scope

type Scope struct {
	OrgID   uint64
	OrgName string
	AppID   uint64
	AppName string
}

Jump to

Keyboard shortcuts

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