client

package
v0.0.0-...-cf86a0e Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultChangeSetQueryLimit = 500
	AuthModeBasic              = "basic"
	AuthModeCookie             = "cookie"
)

Variables

This section is empty.

Functions

func NewSemaphore

func NewSemaphore(n int) sync.Locker

Types

type Client

type Client struct {
	Gerrit *gerrit.Client
}

func NewGerritClient

func NewGerritClient(instance string, seconds int) (*Client, error)

func (*Client) Authentication

func (c *Client) Authentication(m, u, p string)

func (*Client) GetQueryLimit

func (c *Client) GetQueryLimit() int

type Crawler

type Crawler struct {
	Client              *Client
	ChangeSetQueryLimit int
	Storage             chan *storage.ChangeSet
	IdentityStorage     chan *identity.Identity
}

func NewCrawler

func NewCrawler(c *Client) *Crawler

func (*Crawler) Changesets

func (c *Crawler) Changesets(project string)

func (*Crawler) Projects

func (c *Crawler) Projects() (*map[string]storage.Project, error)

Jump to

Keyboard shortcuts

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