gh

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Summery map[string]interface{}

Functions

func CheckPatLimit

func CheckPatLimit()

func Connecter

func Connecter()

func GetData

func GetData()

func GetNewRepos

func GetNewRepos() (diff []string)

func GetResponse

func GetResponse(ghURL string, auth bool, params map[string]string) ([]byte, int)

func GetUsers

func GetUsers() (jsonData []byte)

func GetUsersRepos

func GetUsersRepos() (jsonData []byte)

Types

type Limits

type Limits struct {
	Total     int `json:"limit"`
	Used      int `json:"used"`
	Remaining int `json:"remaining"`
	Reset     int `json:"reset"`
}

type Rate

type Rate struct {
	Rate Limits `json:"rate"`
}

type Repo

type Repo struct {
	FullName    string `json:"full_name"`
	Private     bool   `json:"private"`
	HtmlURL     string `json:"html_url"`
	Description string `json:"description"`
	Fork        bool   `json:"fork"`
	Created     string `json:"created_at"`
	Updated     string `json:"updated_at"`
	Push        string `json:"pushed_at"`
	CloneURL    string `json:"clone_url"`
	Visiability string `json:"visibility"`
}

type RepoURL

type RepoURL struct {
	URL string `json:"repos_url"`
}

type Repos

type Repos struct {
	URL string `json:"html_url"`
}

type Users

type Users struct {
	Username          string `json:"login"`
	Url               string `json:"url"`
	ProfileUrl        string `json:"html_url"`
	ReposUrl          string `json:"repos_url"`
	EventsUrl         string `json:"events_url"`
	ReceivedEventsUrl string `json:"received_events_url"`
	Type              string `json:"type"`
	Admin             bool   `json:"site_admin"`
}

Jump to

Keyboard shortcuts

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