Documentation
¶
Index ¶
- func GetSessionId(transport api.Transport) (string, error)
- type AccountState
- type Options
- type WebSession
- func (w *WebSession) BeginPolling(ctx context.Context)
- func (w *WebSession) CommunityClient() community.Api
- func (w *WebSession) EconClient() econ.Api
- func (w *WebSession) MobileConfClient() mobileconf.Api
- func (w *WebSession) SessionId() (string, error)
- func (w *WebSession) SteamId() steamid.SteamID
- func (w *WebSession) Tf2EconClient() tf2econ.Api
- func (w *WebSession) TradeOfferClient() tradeoffer.Api
- func (w *WebSession) Transport() api.Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountState ¶
type AccountState struct {
// contains filtered or unexported fields
}
func NewAccountState ¶
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
Click to show internal directories.
Click to hide internal directories.