Documentation ¶
Index ¶
- Constants
- Variables
- func CleanupDB()
- func ConnectWS(client *http.Client) (*websocket.Conn, error)
- func CreateLobby() *lobby.Lobby
- func CreatePlayer() *player.Player
- func CreatePlayerAdmin() *player.Player
- func CreatePlayerMod() *player.Player
- func EmitJSONWithReply(conn *websocket.Conn, req map[string]interface{}) (map[string]interface{}, error)
- func Login(steamid string, client *http.Client) (*http.Response, error)
- func LoginAndConnectWS() (string, *websocket.Conn, *http.Client, error)
- func NewClient() (client *http.Client)
- func ReadJSON(conn *websocket.Conn) map[string]interface{}
- func ReadMessages(conn *websocket.Conn, n int, t *testing.T) ([]map[string]interface{}, error)
- func SocketCreateLobby(conn *websocket.Conn)
- func SocketJoinLobby(conn *websocket.Conn)
- func StartServer() *httptest.Server
- type SuffixList
Constants ¶
View Source
const InitMessages int = 4
Variables ¶
Functions ¶
func CreateLobby ¶
func CreatePlayer ¶
func CreatePlayerAdmin ¶
func CreatePlayerMod ¶
func EmitJSONWithReply ¶
func ReadMessages ¶
func StartServer ¶
Types ¶
type SuffixList ¶
type SuffixList struct{}
func (SuffixList) PublicSuffix ¶
func (SuffixList) PublicSuffix(_ string) string
func (SuffixList) String ¶
func (SuffixList) String() string
Click to show internal directories.
Click to hide internal directories.