Documentation
¶
Index ¶
- func ConfirmLogin(w http.ResponseWriter, r *http.Request) error
- func Create(user *discordgo.User, discord *discordgo.Session)
- func GetConnectedUser(r *http.Request) *api.User
- func GetSessions() map[string]string
- func IsConnected(r *http.Request) bool
- func Login(w http.ResponseWriter, r *http.Request) error
- func LoginUser(token *oauth2.Token) *api.User
- func RefreshSessions()
- func RemoveSession(userid int) error
- func UpdateSession(u *api.User, receipt string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfirmLogin ¶
func ConfirmLogin(w http.ResponseWriter, r *http.Request) error
func GetSessions ¶
func IsConnected ¶
func RefreshSessions ¶
func RefreshSessions()
func RemoveSession ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.