github

package
v0.0.0-...-31b3b03 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ParallelWorkers = 1

ParallelWorkers is a number of worker threads run in parallel.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client holds information about github client.

func New

func New(s *Settings, storageClient storage.Client, logger *logrus.Logger) *Client

New returns github client.

func (Client) Issues

func (c Client) Issues() IssueList

func (*Client) Sync

func (c *Client) Sync(description string) error

Sync runs search queries and applies changes in storage.

type Issue

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

Issue implements source.Issue.

func (Issue) Repo

func (i Issue) Repo() string

func (Issue) Title

func (i Issue) Title() string

func (Issue) URL

func (i Issue) URL() string

type IssueList

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

IssueList implements source.IssueList.

func (IssueList) Name

func (i IssueList) Name(name string) []Issue

type Settings

type Settings struct {
	Token        string            `yaml:"token"`
	BoardID      string            `yaml:"project,omitempty"`
	SearchPrefix string            `yaml:"search_prefix,omitempty"`
	SearchList   map[string]string `yaml:"lists"`
}

Settings stores info about github connection.

func (Settings) ID

func (s Settings) ID() string

Implement source.Settings.

func (Settings) Project

func (s Settings) Project() string

func (Settings) Searches

func (s Settings) Searches() map[string]string

type WorkerData

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

WorkerData holds info about worker payload.

Jump to

Keyboard shortcuts

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