issue

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFetchIssues = errors.New("fetch issues")
	ErrStoreIssues = errors.New("store issues")
)

Sentinel errors for classifying parser failures. Callers can use these with errors.Is to decide retry strategy.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser(cfg *config.Github, githubClient *github.Client, issueRepository *repositories.IssueRepository, logger *slog.Logger) *Parser

func (*Parser) Run

func (p *Parser) Run(ctx context.Context) (int, error)

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(cfg *config.Github, logger *slog.Logger, parser *Parser) *Worker

func (*Worker) Task added in v0.5.0

func (w *Worker) Task() *longrun.Task

Task returns a longrun.Task that polls issues on the configured interval.

Jump to

Keyboard shortcuts

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