Documentation ¶
Index ¶
- func AuthFilter(socketid string, f func(string) string) func(string) string
- func AuthenticateSocket(socketid string, r *http.Request) error
- func BuildFailureJSON(message string, code int) *simplejson.Json
- func BuildMissingArgJSON(arg string) *simplejson.Json
- func BuildSuccessJSON(data *simplejson.Json) *simplejson.Json
- func DeauthenticateSocket(socketid string)
- func FormatClassMap(format models.LobbyType) map[string]int
- func GetPlayerSlot(lobbytype models.LobbyType, teamStr string, classStr string) (int, *helpers.TPError)
- func GetSessionHTTP(r *http.Request) (*sessions.Session, error)
- func GetSessionSocket(socketid string) (*sessions.Session, error)
- func GetSteamId(socketid string) string
- func IsLoggedInHTTP(r *http.Request) bool
- func IsLoggedInSocket(socketid string) bool
- func JsonParamFilter(f func(*simplejson.Json) string) func(string) string
- func JsonVerifiedFilter(p map[string]Param, f func(*simplejson.Json) string) func(string) string
- func RedirectHome(w http.ResponseWriter, r *http.Request)
- func SendJSON(w http.ResponseWriter, json *simplejson.Json)
- type Param
- type ParamType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildFailureJSON ¶
func BuildMissingArgJSON ¶
func BuildMissingArgJSON(arg string) *simplejson.Json
func BuildSuccessJSON ¶
func BuildSuccessJSON(data *simplejson.Json) *simplejson.Json
func DeauthenticateSocket ¶
func DeauthenticateSocket(socketid string)
func GetPlayerSlot ¶
func GetSteamId ¶
func IsLoggedInHTTP ¶
func IsLoggedInSocket ¶
func JsonParamFilter ¶
func JsonVerifiedFilter ¶
func RedirectHome ¶
func RedirectHome(w http.ResponseWriter, r *http.Request)
func SendJSON ¶
func SendJSON(w http.ResponseWriter, json *simplejson.Json)
Types ¶
Click to show internal directories.
Click to hide internal directories.