github

package
v0.0.0-...-b2296ca Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Please config: ClientID and ClientSecret
	Conf = oauth2.Config{
		Endpoint: github.Endpoint,
	}
)

Functions

func URL

func URL(redirect string) string

Return and URL to come to GitHub signing page.

func User

func User(r *http.Request) (*public.UserInfo, error)

Return an user login with GitHub

Types

type Info

type Info struct {
	Pseudo string `json:"name"`
	Login  string `json:"login"`
	Email  string `json:"email"`
	Avatar string `json:"avatar_url"`
}

Jump to

Keyboard shortcuts

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