Help us shape the future of Go! Take the 2026 Go Developer Survey

attention

package
v0.2.40 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const WorkQuery = `` /* 3282-byte string literal not displayed */

Variables

This section is empty.

Functions

func CountTx

func CountTx(ctx context.Context, tx pgx.Tx, a domain.Actor) (int64, error)

func WorkCountsTx

func WorkCountsTx(ctx context.Context, tx pgx.Tx, a domain.Actor) (active, blocked, review int64, err error)

func WorkTx

func WorkTx(ctx context.Context, tx pgx.Tx, a domain.Actor, bucket string, limit int, cursor string) (domain.Page[Work], error)

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 Page

type Page struct {
	domain.Page[Need]
	Total int64 `json:"total"`
}

func ListTx

func ListTx(ctx context.Context, tx pgx.Tx, a domain.Actor, limit int, cursor string) (Page, error)

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"`
}

Jump to

Keyboard shortcuts

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