db

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module(c *di.Container)

Types

type GitHubInstallationRepo

type GitHubInstallationRepo interface {
	GetByID(ID string) (*github.GitHubInstallation, error)
	GetByOwner(owner string) (*github.GitHubInstallation, error)
	GetByInstallationID(int64) (*github.GitHubInstallation, error)
	Create(github.GitHubInstallation) error
	Update(*github.GitHubInstallation) error
}

func NewGitHubInstallationRepo

func NewGitHubInstallationRepo(db *sqlx.DB) GitHubInstallationRepo

type GitHubPRRepo

type GitHubPRRepo interface {
	Create(pr github.GitHubPullRequest) error
	Get(ID string) (*github.GitHubPullRequest, error)
	GetByGitHubID(gitHubID int64) (*github.GitHubPullRequest, error)
	GetByCodebaseIDaAndHeadSHA(ctx context.Context, codebaseID, headSHA string) (*github.GitHubPullRequest, error)
	ListByHeadAndRepositoryID(head string, repositoryID int64) ([]*github.GitHubPullRequest, error)
	GetMostRecentlyClosedByWorkspace(workspaceID string) (*github.GitHubPullRequest, error)
	ListOpenedByWorkspace(workspaceID string) ([]*github.GitHubPullRequest, error)
	Update(pr *github.GitHubPullRequest) error
}

func NewGitHubPRRepo

func NewGitHubPRRepo(db *sqlx.DB) GitHubPRRepo

type GitHubRepositoryRepo

type GitHubRepositoryRepo interface {
	GetByInstallationAndGitHubRepoID(installationID, gitHubRepositoryID int64) (*github.GitHubRepository, error)
	GetByInstallationAndName(installationID int64, name string) (*github.GitHubRepository, error)
	GetByCodebaseID(repositoryID string) (*github.GitHubRepository, error)
	GetByID(ID string) (*github.GitHubRepository, error)
	ListByInstallationID(installationID int64) ([]*github.GitHubRepository, error)
	ListByInstallationIDAndGitHubRepoIDs(installationID int64, gitHubRepositoryIDs []int64) ([]*github.GitHubRepository, error)
	Create(repository github.GitHubRepository) error
	Update(*github.GitHubRepository) error
}

func NewGitHubRepositoryRepo

func NewGitHubRepositoryRepo(db *sqlx.DB) GitHubRepositoryRepo

type GitHubUserRepo

type GitHubUserRepo interface {
	Create(user github.GitHubUser) error
	GetByUsername(username string) (*github.GitHubUser, error)
	GetByUserID(userID string) (*github.GitHubUser, error)
	Update(ouser *github.GitHubUser) error
}

func NewGitHubUserRepo

func NewGitHubUserRepo(db *sqlx.DB) GitHubUserRepo

Jump to

Keyboard shortcuts

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