Documentation ¶
Index ¶
- func BroadcastScrollback(so *wsevent.Client, room uint)
- func CheckPrivilege(so *wsevent.Client, action authority.AuthAction) error
- func FilterHTTPRequest(action authority.AuthAction, f func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request)
- func GetIPAddr(r *http.Request) string
- func GetPlayer(token *jwt.Token) *player.Player
- func GetToken(r *http.Request) (*jwt.Token, error)
- func IsSteamIDWhitelisted(steamid string) bool
- func NewToken(player *player.Player) string
- func SendToSlack(msg, name, steamid string)
- func WhitelistListener()
- type SlackMessage
- type TF2StadiumClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BroadcastScrollback ¶
func CheckPrivilege ¶
func CheckPrivilege(so *wsevent.Client, action authority.AuthAction) error
shitlord
func FilterHTTPRequest ¶
func FilterHTTPRequest(action authority.AuthAction, f func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request)
func IsSteamIDWhitelisted ¶
func SendToSlack ¶
func SendToSlack(msg, name, steamid string)
func WhitelistListener ¶
func WhitelistListener()
Types ¶
type SlackMessage ¶
type SlackMessage struct {
Text string `json:"text"`
}
type TF2StadiumClaims ¶
type TF2StadiumClaims struct { PlayerID uint `json:"player_id"` SteamID string `json:"steam_id"` MumblePassword string `json:"mumble_password"` Role authority.AuthRole `json:"role"` IssuedAt int64 `json:"iat"` Issuer string `json:"iss"` }
func (TF2StadiumClaims) Valid ¶
func (c TF2StadiumClaims) Valid() error
Click to show internal directories.
Click to hide internal directories.