social

package
v0.0.0-...-063afa5 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Callback

func Callback(w http.ResponseWriter, r *http.Request, oauthConfig *oauth2.Config, apiEndpoint string)

Callback handles login check and redirection to main page

func Login

func Login(w http.ResponseWriter, r *http.Request, oauthConfig *oauth2.Config)

Login handles redirection to login page

Types

type User

type User struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

User is user info name & email

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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