gateway

package
v0.0.0-...-4f860c3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2017 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

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_unavailable  = "unavailable"
	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

func NextIqId

func NextIqId() string

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()

type StatusSteamFriend

type StatusSteamFriend struct {
	XMPP_Status   string
	XMPP_Type     string
	SteamGameName string
	SteamName     string
}

Jump to

Keyboard shortcuts

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