steam

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Instance_All     uint32 = 0
	Instance_Desktop uint32 = 1
	Instance_Console uint32 = 2
	Instance_Web     uint32 = 4
)

Variables

This section is empty.

Functions

func AESDecrypt

func AESDecrypt(key []byte, data []byte) ([]byte, error)

func AESDecryptWithHMAC

func AESDecryptWithHMAC(key []byte, secret []byte, data []byte) ([]byte, error)

func AESEncrypt

func AESEncrypt(key []byte, data []byte) ([]byte, error)

func AESEncryptWithHMAC

func AESEncryptWithHMAC(key []byte, secret []byte, data []byte) ([]byte, error)

func BitSet64_Get

func BitSet64_Get(b *uint64, offset uint32, mask uint64) uint64

func BitSet64_Set

func BitSet64_Set(b *uint64, v uint64, offset uint32, mask uint64)

func EncryptOAEPSha1

func EncryptOAEPSha1(key []byte, data []byte) ([]byte, error)

func GetUniversePublicKey

func GetUniversePublicKey(u steamlang.EUniverse) []byte

func NetAddrToUint32 added in v0.6.1

func NetAddrToUint32(addr net.Addr) uint32

func UncompressGzip

func UncompressGzip(data []byte) ([]byte, error)

Types

type GameId

type GameId uint64

func (*GameId) GetAppId

func (i *GameId) GetAppId() uint32

func (*GameId) GetAppType

func (i *GameId) GetAppType() GameType

func (*GameId) GetModId

func (i *GameId) GetModId() uint32

func (*GameId) SetAppId

func (i *GameId) SetAppId(v uint32)

func (*GameId) SetAppType

func (i *GameId) SetAppType(v GameType)

func (*GameId) SetModId

func (i *GameId) SetModId(v uint32)

type GameType

type GameType uint32
const (
	GameType_App      GameType = 0
	GameType_GameMod  GameType = 1
	GameType_Shortcut GameType = 2
	GameType_P2P      GameType = 3
)

type GlobalID

type GlobalID uint64

func (*GlobalID) GetBoxId

func (i *GlobalID) GetBoxId() uint32

func (*GlobalID) GetProcessId

func (i *GlobalID) GetProcessId() uint32

func (*GlobalID) GetSequentialCount

func (i *GlobalID) GetSequentialCount() uint32

func (*GlobalID) GetStartTime

func (i *GlobalID) GetStartTime() time.Time

func (*GlobalID) SetBoxId

func (i *GlobalID) SetBoxId(v uint32)

func (*GlobalID) SetProcessId

func (i *GlobalID) SetProcessId(v uint32)

func (*GlobalID) SetSequentialCount

func (i *GlobalID) SetSequentialCount(v uint32)

func (*GlobalID) SetStartTime

func (i *GlobalID) SetStartTime(v time.Time)

type JobId

type JobId = GlobalID

type SteamId

type SteamId uint64

func NewInstanceSteamId

func NewInstanceSteamId(accountId uint32, instance uint32, universe steamlang.EUniverse, accountType steamlang.EAccountType) SteamId

func NewSteamId

func NewSteamId(accountId uint32, universe steamlang.EUniverse, accountType steamlang.EAccountType) SteamId

func (*SteamId) GetAccountId

func (i *SteamId) GetAccountId() uint32

func (*SteamId) GetAccountInstance

func (i *SteamId) GetAccountInstance() uint32

func (*SteamId) GetAccountType

func (i *SteamId) GetAccountType() steamlang.EAccountType

func (*SteamId) GetAccountUniverse

func (i *SteamId) GetAccountUniverse() steamlang.EUniverse

func (*SteamId) GetClanId

func (i *SteamId) GetClanId() (SteamId, bool)

func (*SteamId) GetStaticAccountKey

func (i *SteamId) GetStaticAccountKey() uint64

func (*SteamId) IsAnonAccount

func (i *SteamId) IsAnonAccount() bool

func (*SteamId) IsAnonGameServerAccount

func (i *SteamId) IsAnonGameServerAccount() bool

func (*SteamId) IsAnonUserAccount

func (i *SteamId) IsAnonUserAccount() bool

func (*SteamId) IsBlankAnonAccount

func (i *SteamId) IsBlankAnonAccount() bool

func (*SteamId) IsChatAccount

func (i *SteamId) IsChatAccount() bool

func (*SteamId) IsClanAccount

func (i *SteamId) IsClanAccount() bool

func (*SteamId) IsConsoleUserAccount

func (i *SteamId) IsConsoleUserAccount() bool

func (*SteamId) IsContentServerAccount

func (i *SteamId) IsContentServerAccount() bool

func (*SteamId) IsGameServerAccount

func (i *SteamId) IsGameServerAccount() bool

func (*SteamId) IsIndividualAccount

func (i *SteamId) IsIndividualAccount() bool

func (*SteamId) IsLobby

func (i *SteamId) IsLobby() bool

func (*SteamId) IsPersistentGameServerAccount

func (i *SteamId) IsPersistentGameServerAccount() bool

func (*SteamId) IsValid

func (i *SteamId) IsValid() bool

func (*SteamId) SetAccountId

func (i *SteamId) SetAccountId(v uint32)

func (*SteamId) SetAccountInstance

func (i *SteamId) SetAccountInstance(v uint32)

func (*SteamId) SetAccountType

func (i *SteamId) SetAccountType(v steamlang.EAccountType)

func (*SteamId) SetAccountUniverse

func (i *SteamId) SetAccountUniverse(v steamlang.EUniverse)

func (*SteamId) SetFromSteam2String

func (i *SteamId) SetFromSteam2String(s string, u steamlang.EUniverse) bool

func (*SteamId) SetFromSteam3String

func (i *SteamId) SetFromSteam3String(s string, u steamlang.EUniverse) bool

func (*SteamId) String

func (i *SteamId) String(steam3 bool) string

func (*SteamId) ToChatId

func (i *SteamId) ToChatId() (SteamId, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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