github

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderName = "github"
	CodeKey      = "code"
)

Variables

This section is empty.

Functions

func GetLoginURL

func GetLoginURL(state string) string

func Routes added in v1.0.0

func Routes(r *gin.Engine)

func Session

func Session(name string) gin.HandlerFunc

func SessionHandler added in v1.0.0

func SessionHandler() gin.HandlerFunc

func Setup

func Setup(gormDb *gorm.DB, redirectURL, credFile string, scopes []string, secret []byte)

Types

type Credentials

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

Jump to

Keyboard shortcuts

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