Documentation
¶
Index ¶
- Constants
- func CountTx(ctx context.Context, tx pgx.Tx, a domain.Actor) (int64, error)
- func WorkCountsTx(ctx context.Context, tx pgx.Tx, a domain.Actor) (active, blocked, review int64, err error)
- func WorkTx(ctx context.Context, tx pgx.Tx, a domain.Actor, bucket string, limit int, ...) (domain.Page[Work], error)
- type Need
- type Page
- type Work
Constants ¶
View Source
const WorkQuery = `` /* 4753-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func WorkCountsTx ¶
Types ¶
type Need ¶
type Need struct {
ID string `json:"id"`
Kind string `json:"kind"`
FindingID string `json:"finding_id"`
FindingVersion int64 `json:"finding_version"`
RepositoryID string `json:"repository_id"`
Repository string `json:"repository"`
Title string `json:"title"`
Reason string `json:"reason"`
URL string `json:"url,omitempty"`
Label string `json:"label,omitempty"`
Owner string `json:"owner"`
NextRetryAt *time.Time `json:"next_retry_at,omitempty"`
}
type Work ¶
type Work struct {
ID string `json:"id"`
RepositoryID string `json:"repository_id"`
Repository string `json:"repository"`
Kind string `json:"kind"`
State string `json:"state"`
Bucket string `json:"bucket"`
Title string `json:"title"`
Reason string `json:"reason"`
URL string `json:"url"`
CreatedAt time.Time `json:"created_at"`
}
Click to show internal directories.
Click to hide internal directories.