Documentation ¶
Index ¶
- type CreatePrParams
- type DBTX
- type DbStorage
- type Meta
- type Pr
- type Queries
- func (q *Queries) BuriedPrs(ctx context.Context) ([]string, error)
- func (q *Queries) Bury(ctx context.Context, url string) error
- func (q *Queries) CreatePr(ctx context.Context, arg CreatePrParams) (Pr, error)
- func (q *Queries) DeletePrs(ctx context.Context) error
- func (q *Queries) GetLastFetched(ctx context.Context) (string, error)
- func (q *Queries) GetPr(ctx context.Context, url string) (Pr, error)
- func (q *Queries) ListPrs(ctx context.Context) ([]Pr, error)
- func (q *Queries) StoreLastFetched(ctx context.Context, value string) error
- func (q *Queries) Unbury(ctx context.Context, url string) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Storage
- type StorageDemo
- type StoredState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatePrParams ¶
type CreatePrParams struct { Url string ReviewStatus string Title string Author string RepoName string RepoOwner string RepoUrl string IsDraft bool LastUpdated string LastPrCommenter string ThreadsActionable int64 ThreadsWaiting int64 Additions int64 Deletions int64 ReviewRequestedFromUsers string Buried bool }
type DbStorage ¶ added in v0.0.31
type DbStorage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func (*DbStorage) Prs ¶ added in v0.0.31
func (s *DbStorage) Prs() StoredState
func (*DbStorage) StoreRepoPrs ¶ added in v0.0.31
type Pr ¶
type Pr struct { Url string ReviewStatus string Title string Author string RepoName string RepoOwner string RepoUrl string IsDraft bool LastUpdated string LastPrCommenter string ThreadsActionable int64 ThreadsWaiting int64 Additions int64 Deletions int64 ReviewRequestedFromUsers string Buried bool }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) GetLastFetched ¶
func (*Queries) StoreLastFetched ¶
type StorageDemo ¶ added in v0.0.31
type StorageDemo struct{}
func NewStorageDemo ¶ added in v0.0.31
func NewStorageDemo() *StorageDemo
func (*StorageDemo) Bury ¶ added in v0.0.31
func (s *StorageDemo) Bury(prUrl string) error
func (*StorageDemo) Prs ¶ added in v0.0.31
func (s *StorageDemo) Prs() StoredState
func (*StorageDemo) StoreRepoPrs ¶ added in v0.0.31
func (s *StorageDemo) StoreRepoPrs(orderedPrs []types.ViewPr) error
func (*StorageDemo) Unbury ¶ added in v0.0.31
func (s *StorageDemo) Unbury(prUrl string) error
Click to show internal directories.
Click to hide internal directories.