api

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateClient

func GenerateClient() *githubv4.Client

Generate a githubv4 client

func Username

func Username() string

Get the username of the authed user

Types

type Repo

type Repo struct {
	Owner        string
	Name         string
	MainLanguage string
	Private      bool
	Archived     bool
	Template     bool
	Disabled     bool
	Mirror       bool
	Fork         bool
}

func RepoData

func RepoData(client *githubv4.Client, owner string, name string) (Repo, error)

Get data about a repo

Jump to

Keyboard shortcuts

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