controller

package
v0.0.0-...-9e67a62 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct{}

func New

func New() *Controller

func (*Controller) Run

func (c *Controller) Run(ctx context.Context, logger zerolog.Logger) error

type GitHub

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

func NewGitHub

func NewGitHub(ctx context.Context) *GitHub

func (*GitHub) GetRepo

func (gh *GitHub) GetRepo(ctx context.Context, repoOwner, repoName string) (Repo, error)

func (*GitHub) SearchRepos

func (gh *GitHub) SearchRepos(ctx context.Context, logger zerolog.Logger, query string, excludedOwners map[string]struct{}) (map[string]*Result, error)

type Repo

type Repo struct {
	Star int
}

type Result

type Result struct {
	Repo  string
	Star  int
	Owner string
}

Jump to

Keyboard shortcuts

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