Documentation ¶
Index ¶
- type Database
- func (d *Database) FindRepository(ctx context.Context, provider, org, name string) (*Repository, error)
- func (d *Database) Init() error
- func (d *Database) InsertRepository(ctx context.Context, repo *Repository) error
- func (d *Database) SelectAllRepositories(ctx context.Context) ([]Repository, error)
- func (d *Database) SelectRepositories(ctx context.Context, org, filter string) ([]Repository, error)
- func (d *Database) UpsertRepositories(ctx context.Context, repos []Repository) error
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
func (*Database) FindRepository ¶ added in v0.1.0
func (*Database) InsertRepository ¶
func (d *Database) InsertRepository(ctx context.Context, repo *Repository) error
func (*Database) SelectAllRepositories ¶
func (d *Database) SelectAllRepositories(ctx context.Context) ([]Repository, error)
func (*Database) SelectRepositories ¶
func (*Database) UpsertRepositories ¶
func (d *Database) UpsertRepositories(ctx context.Context, repos []Repository) error
type Repository ¶
type Repository struct { gorm.Model Provider string Title string `gorm:"unique"` Owner string Name string Description string BrowserHomepageURL string BrowserPullRequestsURL string OrgURL string IssuesURL string CIURL string ReleasesURL string SettingsURL string HTTPSCloneURL string SSHCloneURL string }
func NewRepository ¶
func NewRepository( provider, title, owner, name, description, browserHomepageURL, browserPullRequestsURL, orgURL, issuesURL, ciURL, releasesURL, settingsURL, httpsCloneURL, sshCloneURL string, ) Repository
Click to show internal directories.
Click to hide internal directories.