Documentation ¶
Index ¶
Constants ¶
View Source
const UserAgent = "globalsteam.online"
Variables ¶
View Source
var Providers = []Provider{
&steamProvider{},
&discordProvider{},
&twitchProvider{},
&battlenetProvider{},
&googleProvider{},
&twitterProvider{},
&redditProvider{},
&patreonProvider{},
&githubProvider{},
}
In order for frontend
Functions ¶
This section is empty.
Types ¶
type BattlenetUser ¶
type GithubUser ¶
type GoogleUser ¶
type OAuth1Provider ¶
type OAuth2Provider ¶
type OpenIDProvider ¶
type PatreonUser ¶
type Provider ¶
type Provider interface { GetName() string GetIcon() string GetColour() string GetEnum() ProviderEnum GetType() ProviderType HasEmail() bool }
func New ¶
func New(p ProviderEnum) Provider
type ProviderEnum ¶
type ProviderEnum string
var ( ProviderDiscord ProviderEnum = "discord" ProviderGoogle ProviderEnum = "google" ProviderGithub ProviderEnum = "github" ProviderTwitch ProviderEnum = "twitch" ProviderBattlenet ProviderEnum = "battlenetus" ProviderReddit ProviderEnum = "reddit" ProviderPatreon ProviderEnum = "patreon" ProviderSteam ProviderEnum = "steam" ProviderTwitter ProviderEnum = "twitter" )
type RedditUser ¶
type TwitchUser ¶
type TwitchUser struct { Data []struct { ID string `json:"id"` Login string `json:"login"` DisplayName string `json:"display_name"` Type string `json:"type"` BroadcasterType string `json:"broadcaster_type"` Description string `json:"description"` ProfileImageURL string `json:"profile_image_url"` OfflineImageURL string `json:"offline_image_url"` ViewCount int `json:"view_count"` Email string `json:"email"` } `json:"data"` }
Click to show internal directories.
Click to hide internal directories.