Help us shape the future of Go! Take the 2026 Go Developer Survey

github

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client handles GitHub API operations

func NewClient

func NewClient() (*Client, error)

NewClient creates a new GitHub client

func (*Client) CheckStarredStatus

func (c *Client) CheckStarredStatus(packages []*model.Package) error

CheckStarredStatus checks if the repositories are starred by the authenticated user

func (*Client) StarAllUnstarred

func (c *Client) StarAllUnstarred(packages []*model.Package) (int, error)

StarAllUnstarred stars all unstarred GitHub repositories

func (*Client) StarRepository

func (c *Client) StarRepository(pkg *model.Package) error

StarRepository stars a repository

func (*Client) UnstarRepository

func (c *Client) UnstarRepository(pkg *model.Package) error

UnstarRepository unstars a repository

type GitHubClient

type GitHubClient interface {
	CheckStarredStatus(packages []*model.Package) error
	StarRepository(pkg *model.Package) error
	UnstarRepository(pkg *model.Package) error
	StarAllUnstarred(packages []*model.Package) (int, error)
}

GitHubClient defines the interface for GitHub operations

Jump to

Keyboard shortcuts

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