githubsearch

package
v0.2.51 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: MIT Imports: 2 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 (
	Asc SortDirection = iota
	Desc

	UpdatedAt SortField = "updated"
	CreatedAt SortField = "created"

	Issue       EntityType = "issue"
	PullRequest EntityType = "pr"

	Open   State = "open"
	Closed State = "closed"
	Merged State = "merged"

	Public  RepoVisibility = "public"
	Private RepoVisibility = "private"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityType

type EntityType string

type Query

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

func NewQuery

func NewQuery() *Query

func (*Query) AddLabel

func (q *Query) AddLabel(name string)

func (*Query) AddQuery

func (q *Query) AddQuery(query string)

func (*Query) AssignedTo

func (q *Query) AssignedTo(user string)

func (*Query) AuthoredBy

func (q *Query) AuthoredBy(user string)

func (*Query) InMilestone

func (q *Query) InMilestone(title string)

func (*Query) InRepository

func (q *Query) InRepository(nameWithOwner string)

func (*Query) IncludeForks

func (q *Query) IncludeForks(include bool)

func (*Query) Mentions

func (q *Query) Mentions(handle string)

func (*Query) OnlyForks

func (q *Query) OnlyForks()

func (*Query) OwnedBy

func (q *Query) OwnedBy(owner string)

func (*Query) SetArchived

func (q *Query) SetArchived(isArchived bool)

func (*Query) SetBaseBranch

func (q *Query) SetBaseBranch(name string)

func (*Query) SetHeadBranch

func (q *Query) SetHeadBranch(name string)

func (*Query) SetLanguage

func (q *Query) SetLanguage(name string)

func (*Query) SetState

func (q *Query) SetState(s State)

func (*Query) SetType

func (q *Query) SetType(t EntityType)

func (*Query) SetVisibility

func (q *Query) SetVisibility(visibility RepoVisibility)

func (*Query) SortBy

func (q *Query) SortBy(field SortField, direction SortDirection)

func (*Query) String

func (q *Query) String() string

type RepoVisibility

type RepoVisibility string

type SortDirection

type SortDirection int

type SortField

type SortField string

type State

type State string

Jump to

Keyboard shortcuts

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