Documentation
¶
Index ¶
- func MakeDispatchLayer(handlers ...Handler) *dispatchLayer
- func NewDispatchLayer(dispatchMap map[steamlang.EMsg]func(*steammsg.Packet) ([]Event, error)) *dispatchLayer
- func NewEncryptedLayer(universe steamlang.EUniverse) *encryptedLayer
- func NewFuture[T any]() *future[T]
- func NewLayerStack(bottom Layer, top Layer) *layerStack
- func NewPacketLayer() *packetLayer
- func NewSessionLayer() *sessionLayer
- func NewTCPLayer() *tcpLayer
- type Connection
- type Encrypter
- type Event
- type EventCallback
- type EventChannelEncrypted
- type EventDataReceived
- type EventDataToSend
- type EventPacketReceived
- type EventPacketTosend
- type EventType
- type Handler
- type Layer
- type PICSRequest
- type ServerRecord
- type Servers
- type SteamAppsHandler
- func (handler *SteamAppsHandler) GetCDNAuthToken(conn Connection, appId uint32, depotId uint32, serverHostname string) (*steampb.CMsgClientGetCDNAuthTokenResponse, error)
- func (handler *SteamAppsHandler) GetDepotDecryptionKey(conn Connection, depotId uint32, appId uint32) (*steampb.CMsgClientGetDepotDecryptionKeyResponse, error)
- func (handler *SteamAppsHandler) PICSGetAccessTokens(conn Connection, apps []PICSRequest, packages []PICSRequest) (*steampb.CMsgClientPICSAccessTokenResponse, error)
- func (handler *SteamAppsHandler) PICSGetProductInfo(conn Connection, apps []PICSRequest, packages []PICSRequest, onlyMetaData bool) (*steampb.CMsgClientPICSProductInfoResponse, error)
- func (handler *SteamAppsHandler) Register(handlers map[steamlang.EMsg]func(*steammsg.Packet) ([]Event, error))
- func (handler *SteamAppsHandler) RequestFreeLicense(conn Connection, appIds []uint32) (*steampb.CMsgClientRequestFreeLicenseResponse, error)
- type SteamBaseHandler
- type SteamConnection
- func (conn *SteamConnection) Connect() error
- func (conn *SteamConnection) GetNextJobId() steam.JobId
- func (conn *SteamConnection) RegisterJob(jobId steam.JobId, callback func(any))
- func (conn *SteamConnection) SendPacket(packet *steammsg.Packet) error
- func (conn *SteamConnection) WaitReady(timeout time.Duration) error
- type SteamContentHandler
- func (handler *SteamContentHandler) GetCDNAuthToken(conn Connection, appId uint32, depotId uint32, cdnHostname string) (string, error)
- func (handler *SteamContentHandler) GetManifestRequestCode(conn Connection, depotId uint32, appId uint32, manifestId uint64, ...) (uint64, error)
- func (handler *SteamContentHandler) GetServersForSteamPipe(conn Connection, cellId uint32) ([]*steampb.CContentServerDirectory_ServerInfo, error)
- func (handler *SteamContentHandler) Register(_ map[steamlang.EMsg]func(*steammsg.Packet) ([]Event, error))
- type SteamUnifiedMessageHandler
- func (handler *SteamUnifiedMessageHandler) Register(handlers map[steamlang.EMsg]func(*steammsg.Packet) ([]Event, error))
- func (handler *SteamUnifiedMessageHandler) SendMessage(conn Connection, name string, body any) (*steamUnifiedMessageResponse, error)
- func (handler *SteamUnifiedMessageHandler) SendNotification(conn Connection, name string, body any) error
- type SteamUserHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeDispatchLayer ¶
func MakeDispatchLayer(handlers ...Handler) *dispatchLayer
func NewDispatchLayer ¶
func NewEncryptedLayer ¶
func NewLayerStack ¶
func NewPacketLayer ¶
func NewPacketLayer() *packetLayer
func NewSessionLayer ¶
func NewSessionLayer() *sessionLayer
func NewTCPLayer ¶
func NewTCPLayer() *tcpLayer
Types ¶
type Connection ¶
type Encrypter ¶
func NewEncrypter ¶
type Event ¶
func (*Event) WithPayload ¶
type EventCallback ¶
type EventChannelEncrypted ¶
type EventChannelEncrypted struct{}
type EventDataReceived ¶
type EventDataReceived struct {
Data []byte
}
type EventDataToSend ¶
type EventDataToSend struct {
Data []byte
}
type EventPacketReceived ¶
type EventPacketTosend ¶
type Layer ¶
type Layer interface { ProcessIncoming([]Event) ([]Event, error) ProcessOutgoing([]Event) ([]Event, error) }
func MakeLayerStack ¶
type PICSRequest ¶
type ServerRecord ¶
type Servers ¶
type Servers struct {
// contains filtered or unexported fields
}
func NewServers ¶
func NewServers() *Servers
func (*Servers) PickServer ¶
func (s *Servers) PickServer() *ServerRecord
func (*Servers) Records ¶
func (s *Servers) Records() []*ServerRecord
type SteamAppsHandler ¶
type SteamAppsHandler struct{}
func NewAppsHandler ¶
func NewAppsHandler() *SteamAppsHandler
func (*SteamAppsHandler) GetCDNAuthToken ¶
func (handler *SteamAppsHandler) GetCDNAuthToken(conn Connection, appId uint32, depotId uint32, serverHostname string) (*steampb.CMsgClientGetCDNAuthTokenResponse, error)
func (*SteamAppsHandler) GetDepotDecryptionKey ¶
func (handler *SteamAppsHandler) GetDepotDecryptionKey(conn Connection, depotId uint32, appId uint32) (*steampb.CMsgClientGetDepotDecryptionKeyResponse, error)
func (*SteamAppsHandler) PICSGetAccessTokens ¶
func (handler *SteamAppsHandler) PICSGetAccessTokens(conn Connection, apps []PICSRequest, packages []PICSRequest) (*steampb.CMsgClientPICSAccessTokenResponse, error)
func (*SteamAppsHandler) PICSGetProductInfo ¶
func (handler *SteamAppsHandler) PICSGetProductInfo(conn Connection, apps []PICSRequest, packages []PICSRequest, onlyMetaData bool) (*steampb.CMsgClientPICSProductInfoResponse, error)
func (*SteamAppsHandler) RequestFreeLicense ¶
func (handler *SteamAppsHandler) RequestFreeLicense(conn Connection, appIds []uint32) (*steampb.CMsgClientRequestFreeLicenseResponse, error)
type SteamBaseHandler ¶
type SteamBaseHandler struct { }
func NewSteamBaseHandler ¶
func NewSteamBaseHandler() *SteamBaseHandler
type SteamConnection ¶
type SteamConnection struct {
// contains filtered or unexported fields
}
func NewSteamConnection ¶
func NewSteamConnection(handlers ...Handler) *SteamConnection
func (*SteamConnection) Connect ¶
func (conn *SteamConnection) Connect() error
func (*SteamConnection) GetNextJobId ¶
func (conn *SteamConnection) GetNextJobId() steam.JobId
func (*SteamConnection) RegisterJob ¶
func (conn *SteamConnection) RegisterJob(jobId steam.JobId, callback func(any))
func (*SteamConnection) SendPacket ¶
func (conn *SteamConnection) SendPacket(packet *steammsg.Packet) error
type SteamContentHandler ¶
type SteamContentHandler struct {
// contains filtered or unexported fields
}
func NewSteamContentHandler ¶
func NewSteamContentHandler(unifiedMessage *SteamUnifiedMessageHandler) *SteamContentHandler
func (*SteamContentHandler) GetCDNAuthToken ¶
func (handler *SteamContentHandler) GetCDNAuthToken(conn Connection, appId uint32, depotId uint32, cdnHostname string) (string, error)
func (*SteamContentHandler) GetManifestRequestCode ¶
func (handler *SteamContentHandler) GetManifestRequestCode(conn Connection, depotId uint32, appId uint32, manifestId uint64, branch string) (uint64, error)
func (*SteamContentHandler) GetServersForSteamPipe ¶
func (handler *SteamContentHandler) GetServersForSteamPipe(conn Connection, cellId uint32) ([]*steampb.CContentServerDirectory_ServerInfo, error)
type SteamUnifiedMessageHandler ¶
type SteamUnifiedMessageHandler struct{}
func NewSteamUnifiedMessageHandler ¶
func NewSteamUnifiedMessageHandler() *SteamUnifiedMessageHandler
func (*SteamUnifiedMessageHandler) SendMessage ¶
func (handler *SteamUnifiedMessageHandler) SendMessage(conn Connection, name string, body any) (*steamUnifiedMessageResponse, error)
func (*SteamUnifiedMessageHandler) SendNotification ¶
func (handler *SteamUnifiedMessageHandler) SendNotification(conn Connection, name string, body any) error
type SteamUserHandler ¶
type SteamUserHandler struct{}
func NewUserHandler ¶
func NewUserHandler() *SteamUserHandler
func (*SteamUserHandler) LogInAnonymously ¶
func (handler *SteamUserHandler) LogInAnonymously(conn Connection) (*steampb.CMsgClientLogonResponse, error)
Click to show internal directories.
Click to hide internal directories.