github

package
v0.0.0-...-70aa25f Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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) *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