Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Providers = map[string]*Config{ "discord": { Name: "Discord", UserEndpoint: discordgo.EndpointUser("@me"), Config: oauth2.Config{ Scopes: []string{"identify"}, Endpoint: oauth2.Endpoint{ AuthStyle: oauth2.AuthStyleInParams, AuthURL: discordgo.EndpointOauth2 + "authorize", TokenURL: discordgo.EndpointOauth2 + "token", }, }, }, "github": { Name: "GitHub", Config: oauth2.Config{Endpoint: github.Endpoint}, }, "gitlab": { Name: "GitLab", UserEndpoint: "https://gitlab.com/oauth/userinfo", Config: oauth2.Config{ Endpoint: gitlab.Endpoint, Scopes: []string{"openid"}, }, }, "stack-overflow": { Name: "Stack Overflow", Config: oauth2.Config{Endpoint: stackoverflow.Endpoint}, UserEndpoint: "https://api.stackexchange.com/me?site=stackoverflow", }, }
Functions ¶
This section is empty.
Types ¶
type Connection ¶
func GetConnections ¶
func GetConnections(db db.Queryable, golferID int, onlyPublic bool) (c []Connection)
Click to show internal directories.
Click to hide internal directories.