Back to

Package github

Latest Go to latest

The highest tagged major version is .

Published: Jan 24, 2019 | License: MIT | Module:


Package github provides you access to Github's OAuth2 infrastructure.


func Auth

func Auth() gin.HandlerFunc

func GetLoginURL

func GetLoginURL(state string) string

func LoginHandler

func LoginHandler(ctx *gin.Context)

func Session

func Session(name string) gin.HandlerFunc

func Setup

func Setup(redirectURL, credFile string, scopes []string, secret []byte)

type Credentials

type Credentials struct {
	ClientID     string `json:"clientid"`
	ClientSecret string `json:"secret"`

Credentials stores google client-ids.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier