api

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenClient

func GenClient(token string) *githubv4.Client

Generate a client for making requests to the GraphQL API with

func StarCount

func StarCount(github *githubv4.Client) (int, error)

Get the number of stars from a user's account

Types

type Star

type Star struct {
	Name  string
	Owner struct {
		Login string
	}
	Description string
	DiskUsage   githubv4.Int
	IsEmpty     bool
	IsPrivate   bool
	URL         string
}

A starred github repo

func Stars

func Stars(github *githubv4.Client, starCount int) ([]Star, error)

Get star data

Jump to

Keyboard shortcuts

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