github

package
v0.0.0-...-f8db613 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filters

type Filters struct {
	Language string
}

type GithubClient

type GithubClient interface {
	GetLastHundredRepos(filters Filters) ([]*Repo, error)
}

func NewGithubClient

func NewGithubClient(cfg config.GithubConfig, log logrus.FieldLogger) GithubClient

type GithubClientImpl

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

func (GithubClientImpl) GetLastHundredRepos

func (g GithubClientImpl) GetLastHundredRepos(filters Filters) ([]*Repo, error)

func (GithubClientImpl) GetRepoLanguages

func (g GithubClientImpl) GetRepoLanguages(languagesURL string) (map[string]int, error)

type Owner

type Owner struct {
	Login string `json:"login"`
}

type Repo

type Repo struct {
	FullName     string         `json:"full_name"`
	Owner        Owner          `json:"owner"`
	Name         string         `json:"name"`
	LanguagesURL string         `json:"languages_url"`
	Languages    map[string]int `json:"languages"`
}

Jump to

Keyboard shortcuts

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