poller

package
v0.0.0-...-57b1569 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: BSD-3-Clause Imports: 18 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, pathToServiceAccountFile, 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