github

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseGitHubURL

func ParseGitHubURL(repoURL url.URL) (owner, repoName string)

Types

type GitHubSummarizer

type GitHubSummarizer struct {
	GitHubClient *github.Client
}

GitHubSummarizer collects summary about github repo

func (*GitHubSummarizer) GetSummary

func (c *GitHubSummarizer) GetSummary(ctx context.Context, ghURL url.URL) (*GitHubSummary, error)

GetSummary collects summary about github repo

type GitHubSummary

type GitHubSummary struct {
	NumStartsRepo *int `json:"github_repo_stars,omitempty"`
}

GitHubSummary is used in collector result

Jump to

Keyboard shortcuts

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