handler

package
v0.0.0-...-a29ef8a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2016 License: GPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chat

type Chat struct{}

func (Chat) ChatDelete

func (Chat) ChatDelete(so *wsevent.Client, args struct {
	ID   *int  `json:"id"`
	Room *uint `json:"room"`
}) interface{}

func (Chat) ChatSend

func (Chat) ChatSend(so *wsevent.Client, args struct {
	Message *string `json:"message"`
	Room    *int    `json:"room"`
}) interface{}

func (Chat) Name

func (Chat) Name(s string) string

type Global

type Global struct{}

func (Global) GetConstant

func (Global) GetConstant(so *wsevent.Client, args struct {
	Constant string `json:"constant"`
}) interface{}

func (Global) Name

func (Global) Name(s string) string

func (Global) SendToOtherClients

func (Global) SendToOtherClients(so *wsevent.Client, args struct {
	Event string `json:"event"`
	Data  string `json:"data"`
}) interface{}

type Lobby

type Lobby struct{}

func (Lobby) LobbyBan

func (Lobby) LobbyBan(so *wsevent.Client, args struct {
	Id      *uint   `json:"id"`
	Steamid *string `json:"steamid"`
}) interface{}

func (Lobby) LobbyChangeOwner

func (Lobby) LobbyChangeOwner(so *wsevent.Client, args struct {
	ID      *uint   `json:"id"`
	SteamID *string `json:"steamid"`
}) interface{}

func (Lobby) LobbyClose

func (Lobby) LobbyClose(so *wsevent.Client, args struct {
	Id *uint `json:"id"`
}) interface{}

func (Lobby) LobbyCreate

func (Lobby) LobbyCreate(so *wsevent.Client, args struct {
	Map         *string        `json:"map"`
	Type        *string        `json:"type" valid:"debug,6s,highlander,4v4,ultiduo,bball"`
	League      *string        `json:"league" valid:"ugc,etf2l,esea,asiafortress,ozfortress,bballtf"`
	ServerType  *string        `json:"serverType" valid:"server,storedServer,serveme"`
	Serveme     *servemeServer `json:"serveme" empty:"-"`
	Server      *string        `json:"server" empty:"-"`
	RconPwd     *string        `json:"rconpwd" empty:"-"`
	WhitelistID *string        `json:"whitelistID"`
	Mumble      *bool          `json:"mumbleRequired"`

	Password            *string `json:"password" empty:"-"`
	SteamGroupWhitelist *string `json:"steamGroupWhitelist" empty:"-"`
	// restrict lobby slots to twitch subs for a particular channel
	// not a pointer, since it is set to false when the argument json
	// string doesn't have the field
	TwitchWhitelistSubscribers bool `json:"twitchWhitelistSubs"`
	TwitchWhitelistFollowers   bool `json:"twitchWhitelistFollows"`
	RegionLock                 bool `json:"regionLock"`

	Requirements *struct {
		Classes map[string]Requirement `json:"classes,omitempty"`
		General Requirement            `json:"general,omitempty"`
	} `json:"requirements" empty:"-"`

	Discord *struct {
		RedChannel *string `json:"redChannel,omitempty"`
		BluChannel *string `json:"bluChannel,omitempty"`
	} `json:"discord" empty:"-"`
}) interface{}

func (Lobby) LobbyJoin

func (Lobby) LobbyJoin(so *wsevent.Client, args struct {
	Id       *uint   `json:"id"`
	Class    *string `json:"class"`
	Team     *string `json:"team" valid:"red,blu"`
	Password *string `json:"password" empty:"-"`
}) interface{}

func (Lobby) LobbyKick

func (Lobby) LobbyKick(so *wsevent.Client, args struct {
	Id      *uint   `json:"id"`
	Steamid *string `json:"steamid"`
}) interface{}

func (Lobby) LobbyLeave

func (Lobby) LobbyLeave(so *wsevent.Client, args struct {
	Id *uint `json:"id"`
}) interface{}

func (Lobby) LobbyRemoveRegionLock

func (Lobby) LobbyRemoveRegionLock(so *wsevent.Client, args struct {
	ID uint `json:"id"`
}) interface{}

func (Lobby) LobbyRemoveSteamRestriction

func (Lobby) LobbyRemoveSteamRestriction(so *wsevent.Client, args struct {
	ID uint `json:"id"`
}) interface{}

func (Lobby) LobbyRemoveTwitchRestriction

func (Lobby) LobbyRemoveTwitchRestriction(so *wsevent.Client, args struct {
	ID uint `json:"id"`
}) interface{}

func (Lobby) LobbyServerReset

func (Lobby) LobbyServerReset(so *wsevent.Client, args struct {
	ID *uint `json:"id"`
}) interface{}

func (Lobby) LobbySetRequirement

func (Lobby) LobbySetRequirement(so *wsevent.Client, args struct {
	ID *uint `json:"id"` // lobby ID

	Slot     *int         `json:"slot"` // -1 if to set for all slots
	Type     *string      `json:"type"`
	Value    *json.Number `json:"value"`
	Password *string      `json:"password" empty:"-"`
}) interface{}

func (Lobby) LobbySetTeamName

func (Lobby) LobbySetTeamName(so *wsevent.Client, args struct {
	Id      uint   `json:"id"`
	Team    string `json:"team"`
	NewName string `json:"name"`
}) interface{}

func (Lobby) LobbyShuffle

func (Lobby) LobbyShuffle(so *wsevent.Client, args struct {
	Id uint `json:"id"`
}) interface{}

func (Lobby) LobbySpectatorJoin

func (Lobby) LobbySpectatorJoin(so *wsevent.Client, args struct {
	Id *uint `json:"id"`
}) interface{}

func (Lobby) LobbySpectatorLeave

func (Lobby) LobbySpectatorLeave(so *wsevent.Client, args struct {
	Id *uint `json:"id"`
}) interface{}

func (Lobby) Name

func (Lobby) Name(s string) string

func (Lobby) RequestLobbyListData

func (Lobby) RequestLobbyListData(so *wsevent.Client, _ struct{}) interface{}

func (Lobby) ServerVerify

func (Lobby) ServerVerify(so *wsevent.Client, args struct {
	Server  *string `json:"server"`
	Rconpwd *string `json:"rconpwd"`
}) interface{}

type Mumble

type Mumble struct{}

Mumble object contains methods for changing mumble details for a user

func (Mumble) GetMumblePassword

func (Mumble) GetMumblePassword(so *wsevent.Client, _ struct{}) interface{}

func (Mumble) Name

func (Mumble) Name(s string) string

func (Mumble) ResetMumblePassword

func (Mumble) ResetMumblePassword(so *wsevent.Client, _ struct{}) interface{}

type Player

type Player struct{}

func (Player) Name

func (Player) Name(s string) string

func (Player) PlayerDisableTwitchBot

func (Player) PlayerDisableTwitchBot(so *wsevent.Client, _ struct{}) interface{}

func (Player) PlayerEnableTwitchBot

func (Player) PlayerEnableTwitchBot(so *wsevent.Client, _ struct{}) interface{}

func (Player) PlayerNotReady

func (Player) PlayerNotReady(so *wsevent.Client, _ struct{}) interface{}

func (Player) PlayerProfile

func (Player) PlayerProfile(so *wsevent.Client, args struct {
	Steamid *string `json:"steamid"`
}) interface{}

func (Player) PlayerReady

func (Player) PlayerReady(so *wsevent.Client, _ struct{}) interface{}

func (Player) PlayerRecentLobbies

func (Player) PlayerRecentLobbies(so *wsevent.Client, args struct {
	SteamID *string `json:"steamid"`
	Lobbies *int    `json:"lobbies"`
	LobbyID int     `json:"lobbyId"` // start from this lobbyID, 0 when not specified in json
}) interface{}

func (Player) PlayerSettingsGet

func (Player) PlayerSettingsGet(so *wsevent.Client, args struct {
	Key *string `json:"key"`
}) interface{}

func (Player) PlayerSettingsSet

func (Player) PlayerSettingsSet(so *wsevent.Client, args struct {
	Key   *string `json:"key"`
	Value *string `json:"value"`
}) interface{}

type Requirement

type Requirement struct {
	Hours      int         `json:"hours"`
	Lobbies    int         `json:"lobbies"`
	Restricted Restriction `json:"restricted"`
}

type Restriction

type Restriction struct {
	Red bool `json:"red,omitempty"`
	Blu bool `json:"blu,omitempty"`
}

type Serveme

type Serveme struct{}

func (Serveme) GetServemeServers

func (Serveme) GetServemeServers(so *wsevent.Client, _ struct{}) interface{}

func (Serveme) GetStoredServers

func (Serveme) GetStoredServers(so *wsevent.Client, _ struct{}) interface{}

func (Serveme) Name

func (Serveme) Name(s string) string

type Unauth

type Unauth struct{}

func (Unauth) LobbySpectatorJoin

func (Unauth) LobbySpectatorJoin(so *wsevent.Client, args struct {
	ID *uint `json:"id"`
}) interface{}

func (Unauth) LobbySpectatorLeave

func (Unauth) LobbySpectatorLeave(so *wsevent.Client, args struct {
	ID *uint `json:"id"`
}) interface{}

func (Unauth) Name

func (Unauth) Name(s string) string

func (Unauth) PlayerProfile

func (Unauth) PlayerProfile(so *wsevent.Client, args struct {
	Steamid *string `json:"steamid"`
}) interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL