github

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectGithub added in v1.0.5

func CollectGithub(callback CollectCallback)

func GetGithubRepos added in v1.0.5

func GetGithubRepos(page int) ([]string, error)

func GetOauthConfig added in v1.0.5

func GetOauthConfig(params map[string]string) *oauth2.Config

params callback携带的参数

Types

type CollectCallback added in v1.0.5

type CollectCallback func(repo *Repo)

type Repo added in v1.0.5

type Repo struct {
	Url         string
	Name        string
	FullName    string
	Description string
	Readme      string
}

func GetGithubRepo added in v1.0.5

func GetGithubRepo(path string) (*Repo, error)

type UserInfo

type UserInfo struct {
	Id        int64  `json:"id"`
	Login     string `json:"login"`
	NodeId    string `json:"node_id"`
	AvatarUrl string `json:"avatar_url"`
	Url       string `json:"url"`
	HtmlUrl   string `json:"html_url"`
	Email     string `json:"email"`
	Name      string `json:"name"`
	Bio       string `json:"bio"`
	Company   string `json:"company"`
	Blog      string `json:"blog"`
	Location  string `json:"location"`
}

func GetUserInfo

func GetUserInfo(accessToken string) (*UserInfo, error)

Jump to

Keyboard shortcuts

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