Documentation ¶
Index ¶
- Constants
- Variables
- func NextIqId() string
- type GatewayInfo
- func (g *GatewayInfo) Delete()
- func (g *GatewayInfo) Disconnect()
- func (g *GatewayInfo) DisconnectAllSteamFriend()
- func (g *GatewayInfo) IsSteamConnected() bool
- func (g *GatewayInfo) ReceivedXMPP_IQ(iq *xmpp.Iq) bool
- func (g *GatewayInfo) ReceivedXMPP_Message(message *xmpp.Message)
- func (g *GatewayInfo) ReceivedXMPP_Presence(presence *xmpp.Presence)
- func (g *GatewayInfo) Run()
- func (g *GatewayInfo) SendSteamMessage(steamId, message string)
- func (g *GatewayInfo) SendSteamMessageComposing(steamId string)
- func (g *GatewayInfo) SendSteamMessageLeaveConversation(steamId string)
- func (g *GatewayInfo) SendSteamPresence(status steamlang.EPersonaState)
- func (g *GatewayInfo) SendXmppMessage(from, subject, message string)
- func (g *GatewayInfo) SendXmppMessageComposing(from string)
- func (g *GatewayInfo) SendXmppMessageLeaveConversation(from string)
- func (g *GatewayInfo) SendXmppPresence(status, tpye, to, from, message, nick string)
- func (g *GatewayInfo) SetSteamAuthCode(authCode string)
- func (g *GatewayInfo) SteamConnect()
- func (g *GatewayInfo) SteamDisconnect()
- func (g *GatewayInfo) SteamRun()
- func (g *GatewayInfo) XMPP_Disconnect()
- type StatusSteamFriend
Constants ¶
View Source
const ( State_Offline = steamlang.EPersonaState_Offline State_Online = steamlang.EPersonaState_Online State_Busy = steamlang.EPersonaState_Busy State_Away = steamlang.EPersonaState_Away State_Snooze = steamlang.EPersonaState_Snooze State_LookingToTrade = steamlang.EPersonaState_LookingToTrade State_LookingToPlay = steamlang.EPersonaState_LookingToPlay State_Max = steamlang.EPersonaState_Max )
View Source
const ( Status_online = "" Status_offline = "" Status_away = "away" Status_chat = "chat" Status_do_not_disturb = "dnd" Status_extended_away = "xa" Type_available = "" Type_subscribe = "subscribe" Type_subscribed = "subscribed" Type_unsubscribe = "unsubscribe" Type_unsubscribed = "unsubscribed" Type_probe = "probe" Type_error = "error" ActionConnexion = "action_xmpp_connexion" ActionDeconnexion = "action_xmpp_deconnexion" ActionMainMethodEnded = "action_xmpp_main_method_ended" )
Variables ¶
View Source
var ( SentryDirectory = "sentries/" XmppGroupUser = "Steam" RemoteRosterRequestPermission = "remote-roster-request-permission" RemoteRosterRequestRoster = "remote-roster-request-roster" )
View Source
var (
ServerAddrs = "servers.addr"
)
View Source
var (
XmppJidComponent = ""
)
Functions ¶
Types ¶
type GatewayInfo ¶
type GatewayInfo struct { // Steam SteamLogin string SteamPassword string SteamLoginInfo *steam.LogOnDetails SteamClient *steam.Client SentryFile string FriendSteamId map[string]*StatusSteamFriend SteamConnecting bool Deleting bool // XMPP XMPP_JID_Client string XMPP_Out chan interface{} XMPP_Connected_Client map[string]bool DebugMessage bool XMPP_IQ_RemoteRoster_Request map[string]string AllowEditRoster bool ChatstateNotificationData chan string }
func (*GatewayInfo) Delete ¶
func (g *GatewayInfo) Delete()
func (*GatewayInfo) Disconnect ¶
func (g *GatewayInfo) Disconnect()
func (*GatewayInfo) DisconnectAllSteamFriend ¶
func (g *GatewayInfo) DisconnectAllSteamFriend()
func (*GatewayInfo) IsSteamConnected ¶
func (g *GatewayInfo) IsSteamConnected() bool
func (*GatewayInfo) ReceivedXMPP_IQ ¶
func (g *GatewayInfo) ReceivedXMPP_IQ(iq *xmpp.Iq) bool
func (*GatewayInfo) ReceivedXMPP_Message ¶
func (g *GatewayInfo) ReceivedXMPP_Message(message *xmpp.Message)
func (*GatewayInfo) ReceivedXMPP_Presence ¶
func (g *GatewayInfo) ReceivedXMPP_Presence(presence *xmpp.Presence)
func (*GatewayInfo) Run ¶
func (g *GatewayInfo) Run()
func (*GatewayInfo) SendSteamMessage ¶
func (g *GatewayInfo) SendSteamMessage(steamId, message string)
func (*GatewayInfo) SendSteamMessageComposing ¶
func (g *GatewayInfo) SendSteamMessageComposing(steamId string)
func (*GatewayInfo) SendSteamMessageLeaveConversation ¶
func (g *GatewayInfo) SendSteamMessageLeaveConversation(steamId string)
func (*GatewayInfo) SendSteamPresence ¶
func (g *GatewayInfo) SendSteamPresence(status steamlang.EPersonaState)
func (*GatewayInfo) SendXmppMessage ¶
func (g *GatewayInfo) SendXmppMessage(from, subject, message string)
func (*GatewayInfo) SendXmppMessageComposing ¶
func (g *GatewayInfo) SendXmppMessageComposing(from string)
func (*GatewayInfo) SendXmppMessageLeaveConversation ¶
func (g *GatewayInfo) SendXmppMessageLeaveConversation(from string)
func (*GatewayInfo) SendXmppPresence ¶
func (g *GatewayInfo) SendXmppPresence(status, tpye, to, from, message, nick string)
func (*GatewayInfo) SetSteamAuthCode ¶
func (g *GatewayInfo) SetSteamAuthCode(authCode string)
func (*GatewayInfo) SteamConnect ¶
func (g *GatewayInfo) SteamConnect()
func (*GatewayInfo) SteamDisconnect ¶
func (g *GatewayInfo) SteamDisconnect()
func (*GatewayInfo) SteamRun ¶
func (g *GatewayInfo) SteamRun()
func (*GatewayInfo) XMPP_Disconnect ¶
func (g *GatewayInfo) XMPP_Disconnect()
Click to show internal directories.
Click to hide internal directories.