Documentation ¶ Index ¶ func GetOAuthOptions(url string) map[string]string func InitializeOAuth() type Site type UserData func FacebookCallback(code string, state string) (*UserData, error) func GithubCallback(code string, state string) (*UserData, error) func GoogleCallback(code string, state string) (*UserData, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetOAuthOptions ¶ func GetOAuthOptions(url string) map[string]string func InitializeOAuth ¶ func InitializeOAuth() Types ¶ type Site ¶ type Site string const ( SiteGithub Site = "github" SiteGoogle Site = "google" SiteFacebook Site = "facebook" ) type UserData ¶ type UserData struct { Email string Username string Avatar string Site Site ID string } func FacebookCallback ¶ func FacebookCallback(code string, state string) (*UserData, error) func GithubCallback ¶ func GithubCallback(code string, state string) (*UserData, error) func GoogleCallback ¶ func GoogleCallback(code string, state string) (*UserData, error) Source Files ¶ View all Source files facebook.go github.go google.go oauth.go Click to show internal directories. Click to hide internal directories.