Versions in this module Expand all Collapse all v0 v0.0.1 Oct 19, 2023 Changes in this version + var CMServers = [][]string + func GetPublicKey(universe EUniverse) *rsa.PublicKey + func GetRandomCM() *netutil.PortAddr + func GetRandomEuropeCM() *netutil.PortAddr + func GetRandomNorthAmericaCM() *netutil.PortAddr + func InitializeSteamDirectory() error + type AccountInfoEvent struct + AccountFlags EAccountFlags + CountAuthedComputers int32 + Country string + FacebookId uint64 + FacebookName string + PersonaName string + type Auth struct + func (a *Auth) HandlePacket(packet *Packet) + func (a *Auth) LogOn(details *LogOnDetails) + type ChatActionResultEvent struct + Action EChatAction + ChatRoomId SteamId + ChatterId SteamId + Result EChatActionResult + type ChatEnterEvent struct + ChatFlags byte + ChatRoomId steamid.SteamId + ChatRoomType EChatRoomType + ClanId steamid.SteamId + EnterResponse EChatRoomEnterResponse + FriendId steamid.SteamId + Name string + OwnerId steamid.SteamId + type ChatInviteEvent struct + ChatRoomId steamid.SteamId + ChatRoomName string + ChatRoomType EChatRoomType + FriendChatId steamid.SteamId + GameId uint64 + InvitedId steamid.SteamId + PatronId steamid.SteamId + type ChatMemberInfoEvent struct + ChatRoomId steamid.SteamId + StateChangeInfo StateChangeDetails + Type EChatInfoType + type ChatMsgEvent struct + ChatRoomId SteamId + ChatterId SteamId + EntryType EChatEntryType + Message string + Offline bool + Timestamp time.Time + func (c *ChatMsgEvent) IsMessage() bool + type ClanEventDetails struct + EventTime uint32 + GameId uint64 + Headline string + Id uint64 + JustPosted bool + type ClanStateEvent struct + AccountFlags EAccountFlags + Announcements []ClanEventDetails + Avatar string + ClanName string + ClandId steamid.SteamId + Events []ClanEventDetails + MemberChattingCount uint32 + MemberInGameCount uint32 + MemberOnlineCount uint32 + MemberTotalCount uint32 + StateFlags EClientPersonaStateFlag + type Client struct + Auth *Auth + ConnectionTimeout time.Duration + GC *GameCoordinator + Notifications *Notifications + Social *Social + Trading *Trading + Web *Web + func NewClient() *Client + func (c *Client) Connect() *netutil.PortAddr + func (c *Client) ConnectTo(addr *netutil.PortAddr) + func (c *Client) ConnectToBind(addr *netutil.PortAddr, local *net.TCPAddr) + func (c *Client) Connected() bool + func (c *Client) Disconnect() + func (c *Client) Emit(event interface{}) + func (c *Client) Errorf(format string, a ...interface{}) + func (c *Client) Events() <-chan interface{} + func (c *Client) Fatalf(format string, a ...interface{}) + func (c *Client) GetNextJobId() JobId + func (c *Client) RegisterPacketHandler(handler PacketHandler) + func (c *Client) SessionId() int32 + func (c *Client) SteamId() steamid.SteamId + func (c *Client) Write(msg IMsg) + type ClientCMListEvent struct + Addresses []*netutil.PortAddr + type ConnectedEvent struct + type DisconnectedEvent struct + type FatalErrorEvent error + type FriendAddedEvent struct + PersonaName string + Result EResult + SteamId steamid.SteamId + type FriendStateEvent struct + Relationship EFriendRelationship + SteamId steamid.SteamId + func (f *FriendStateEvent) IsFriend() bool + type FriendsListEvent struct + type GCPacketHandler interface + HandleGCPacket func(*GCPacket) + type GameCoordinator struct + func (g *GameCoordinator) HandlePacket(packet *Packet) + func (g *GameCoordinator) RegisterPacketHandler(handler GCPacketHandler) + func (g *GameCoordinator) SetGamesPlayed(appIds ...uint64) + func (g *GameCoordinator) Write(msg IGCMsg) + type GroupStateEvent struct + Relationship EClanRelationship + SteamId steamid.SteamId + func (g *GroupStateEvent) IsMember() bool + type IgnoreFriendEvent struct + Result EResult + type LogOnDetails struct + AuthCode string + LoginKey string + Password string + SentryFileHash SentryHash + ShouldRememberPassword bool + TwoFactorCode string + Username string + type LogOnFailedEvent struct + Result EResult + type LoggedOffEvent struct + Result EResult + type LoggedOnEvent struct + AccountFlags EAccountFlags + Body *protobuf.CMsgClientLogonResponse + ClientSteamId steamid.SteamId + ExtendedResult EResult + Result EResult + type LoginKeyEvent struct + LoginKey string + UniqueId uint32 + type MachineAuthUpdateEvent struct + Hash []byte + type NotificationEvent struct + Count uint + Type NotificationType + type NotificationType uint + const TradeOffer + type Notifications struct + func (n *Notifications) HandlePacket(packet *Packet) + type PacketHandler interface + HandlePacket func(*Packet) + type PersonaStateEvent struct + Avatar string + ClanRank uint32 + ClanTag string + FacebookId uint64 + FacebookName string + FriendId steamid.SteamId + GameAppId uint32 + GameDataBlob []byte + GameId uint64 + GameName string + GameServerIp uint32 + GameServerPort uint32 + LastLogOff uint32 + LastLogOn uint32 + Name string + OnlineSessionInstances uint32 + PersonaSetByUser bool + PublishedSessionId uint32 + QueryPort uint32 + SourceSteamId steamid.SteamId + State EPersonaState + StateFlags EPersonaStateFlag + StatusFlags EClientPersonaStateFlag + type ProfileInfoEvent struct + CityName string + CountryName string + Headline string + RealName string + Result EResult + StateName string + SteamId steamid.SteamId + Summary string + TimeCreated uint32 + type SentryHash []byte + type Social struct + Chats *socialcache.ChatsList + Friends *socialcache.FriendsList + Groups *socialcache.GroupsList + func (s *Social) AddFriend(id steamid.SteamId) + func (s *Social) BanChatMember(room steamid.SteamId, user SteamId) + func (s *Social) GetAvatar() string + func (s *Social) GetPersonaName() string + func (s *Social) GetPersonaState() EPersonaState + func (s *Social) HandlePacket(packet *Packet) + func (s *Social) IgnoreFriend(id steamid.SteamId, setIgnore bool) + func (s *Social) JoinChat(id steamid.SteamId) + func (s *Social) KickChatMember(room steamid.SteamId, user SteamId) + func (s *Social) LeaveChat(id steamid.SteamId) + func (s *Social) RemoveFriend(id steamid.SteamId) + func (s *Social) RequestFriendInfo(id steamid.SteamId, requestedInfo EClientPersonaStateFlag) + func (s *Social) RequestFriendListInfo(ids []steamid.SteamId, requestedInfo EClientPersonaStateFlag) + func (s *Social) RequestProfileInfo(id steamid.SteamId) + func (s *Social) SendMessage(to steamid.SteamId, entryType EChatEntryType, message string) + func (s *Social) SetPersonaName(name string) + func (s *Social) SetPersonaState(state EPersonaState) + func (s *Social) UnbanChatMember(room steamid.SteamId, user SteamId) + type StateChangeDetails struct + ChatterActedBy SteamId + ChatterActedOn SteamId + StateChange EChatMemberStateChange + type SteamFailureEvent struct + Result EResult + type TradeProposedEvent struct + Other SteamId + RequestId TradeRequestId + type TradeRequestId uint32 + type TradeResultEvent struct + DefaultNumDaysPasswordResetProbation uint32 + NumDaysNewDeviceCooldown uint32 + NumDaysPasswordResetProbation uint32 + NumDaysSteamGuardRequired uint32 + Other SteamId + RequestId TradeRequestId + Response EEconTradeResponse + type TradeSessionStartEvent struct + Other SteamId + type Trading struct + func (t *Trading) CancelRequest(other SteamId) + func (t *Trading) HandlePacket(packet *Packet) + func (t *Trading) RequestTrade(other SteamId) + func (t *Trading) RespondRequest(requestId TradeRequestId, accept bool) + type Web struct + SessionId string + SteamLogin string + SteamLoginSecure string + func (w *Web) HandlePacket(packet *Packet) + func (w *Web) LogOn() + type WebLogOnErrorEvent error + type WebLoggedOnEvent struct + type WebSessionIdEvent struct