Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSession ¶
GetSession credit to https://www.sohamkamani.com/blog/2018/03/25/golang-session-authentication/
func Session ¶
func Session(w http.ResponseWriter, r *http.Request)
Session credit to https://www.sohamkamani.com/blog/2018/03/25/golang-session-authentication/
Types ¶
type CurrentMatch ¶
type CurrentMatch struct {
}
CurrentMatch serializable struct to bring client up to speed
type SessionResponse ¶
type SessionResponse struct {
Credentials Credentials
InMatch bool
Match CurrentMatch
}
SessionResponse serializable struct to send client's session
Click to show internal directories.
Click to hide internal directories.