steam

package module
v0.0.0-...-5d32165 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

README

# Steam

⚠️🚧🚧 so very under construction 🚧🚧⚠️

This library is very work-in-progress, and only implements features that we need. If you need more features, check out go-steam or SteamKit.

This library implements:

  • Authenticating with Steam (Steam Guard only)
  • Retrieving Econ Inventories
  • Retrieving TF2 Player Inventories
  • Retrieving Trade Partner Inventories for any AppID
  • Trade Offer Operations (GetOffer, GetOffers, Create, Accept, Decline, Cancel)
  • Mobile Confirmations
  • HTTP Response Caching

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSessionId

func GetSessionId(transport api.Transport) (string, error)

Types

type AccountState

type AccountState struct {
	// contains filtered or unexported fields
}

func NewAccountState

func NewAccountState(
	accountName string,
	password string,
	sharedSecret string,
	identitySecret string,
) (*AccountState, error)

func (*AccountState) TotpState

func (accountState *AccountState) TotpState() *totp.State

type Options

type Options struct {
	AccountState *AccountState
	api.HttpTransportOptions
}

type WebSession

type WebSession struct {
	// contains filtered or unexported fields
}

func Authenticate

func Authenticate(ctx context.Context, options Options) (*WebSession, error)

func (*WebSession) BeginPolling

func (w *WebSession) BeginPolling(ctx context.Context)

func (*WebSession) CommunityClient

func (w *WebSession) CommunityClient() community.Api

func (*WebSession) EconClient

func (w *WebSession) EconClient() econ.Api

func (*WebSession) MobileConfClient

func (w *WebSession) MobileConfClient() mobileconf.Api

func (*WebSession) SessionId

func (w *WebSession) SessionId() (string, error)

func (*WebSession) SteamId

func (w *WebSession) SteamId() steamid.SteamID

func (*WebSession) Tf2EconClient

func (w *WebSession) Tf2EconClient() tf2econ.Api

func (*WebSession) TradeOfferClient

func (w *WebSession) TradeOfferClient() tradeoffer.Api

func (*WebSession) Transport

func (w *WebSession) Transport() api.Transport

Directories

Path Synopsis
api
proto

Jump to

Keyboard shortcuts

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