internal

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cloner

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

func NewCloner

func NewCloner(gitlabToken string, projectsCacheDir string, numWorkers int) *Cloner

func (Cloner) Clone

func (g Cloner) Clone(projects []Project) []ProjectOutput

type Project

type Project struct {
	ID        int      `json:"id"`
	Name      string   `json:"name"`
	Topics    []string `json:"topics"`
	ShortName string   `json:"short_name"`

	URL      string `json:"url"`
	Archived bool   `json:"archived"`
}

func FetchProjects

func FetchProjects(c *gitlab.Client, programmingLanguage string) ([]Project, error)

type ProjectClient

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

func NewProjectClient

func NewProjectClient(client *gitlab.Client, gitlabCacheFile string, language string, excludeProjects []string) *ProjectClient

func (*ProjectClient) GetProjects

func (p *ProjectClient) GetProjects() ([]Project, error)

type ProjectOutput

type ProjectOutput struct {
	Project  *Project
	Err      error
	Duration time.Duration
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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