1
0
Fork 0
go-xmpp4steam/gateway/gateway.go

38 lines
602 B
Go

package gateway
import (
"github.com/Philipp15b/go-steam"
)
const (
SentryDirectory = "sentries/"
)
var (
VersionToSend = ""
)
type GatewayInfo struct {
// Steam
SteamLogin string
SteamPassword string
SteamAuthCode string
SteamLoginInfo *steam.LogOnDetails
SteamClient *steam.Client
SentryFile string
FriendSteamId map[string]struct{}
SteamConnecting bool
// XMPP
XMPP_JID_Client string
XMPP_Out chan interface{}
}
func (g *GatewayInfo) Run() {
go g.SteamRun()
}
func (g *GatewayInfo) SetSteamAuthCode(authCode string) {
g.SteamAuthCode = authCode
}