poller

package
v0.0.0-...-7544f7c Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IssuesPoller

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

IssuesPoller will be used to poll the different issue frameworks.

func New

func New(ctx context.Context, ts oauth2.TokenSource, pathToGithubToken string, dbClient types.BugsDB) (*IssuesPoller, error)

New returns an instance of IssuesPoller.

func (*IssuesPoller) GetOpenIssues

func (p *IssuesPoller) GetOpenIssues() *bugs.OpenIssues

GetOpenIssues returns the bugs.OpenIssues held by this poller.

func (*IssuesPoller) Start

func (p *IssuesPoller) Start(ctx context.Context, pollInterval time.Duration) error

Start polls the different issue frameworks and populates DB and an in-memory object with that data. It hardcodes information about Skia's various clients. It may be possible to extract some/all of these into flags or YAML config files in the future.

Jump to

Keyboard shortcuts

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