Documentation
¶
Index ¶
- Constants
- func ContextWithCachingTtl(ctx context.Context, ttl time.Duration) context.Context
- func MarshalSteamEncodedValues(m proto.Message) (url.Values, error)
- type CacheAdaptor
- type CacheAdaptorError
- type DeviceDetails
- type GuardType
- type HttpTransport
- type HttpTransportOptions
- type Persistence
- type PlatformType
- type Request
- type TokenRenewalType
- type Transport
Constants ¶
View Source
const ( AndroidUnknownOsType int = -500 DefaultGamingDeviceType = 528 )
View Source
const BaseURL = "https://api.steampowered.com"
View Source
const CacheNil = CacheAdaptorError("got nil from cache")
View Source
const FormContentType = "application/x-www-form-urlencoded"
View Source
const JsonContentType = "application/json"
Variables ¶
This section is empty.
Functions ¶
func ContextWithCachingTtl ¶
Types ¶
type CacheAdaptor ¶
type CacheAdaptorError ¶
type CacheAdaptorError string
func (CacheAdaptorError) Error ¶
func (c CacheAdaptorError) Error() string
type DeviceDetails ¶
type DeviceDetails struct {
FriendlyName string `json:"device_friendly_name"`
PlatformType PlatformType `json:"platform_type"`
OsType int `json:"os_type"`
GamingDeviceType int `json:"gaming_device_type"`
}
type HttpTransport ¶
type HttpTransport struct {
// contains filtered or unexported fields
}
func NewTransport ¶
func NewTransport(options HttpTransportOptions) *HttpTransport
func (HttpTransport) CookieJar ¶
func (c HttpTransport) CookieJar() http.CookieJar
func (HttpTransport) HttpClient ¶
func (c HttpTransport) HttpClient() *http.Client
type HttpTransportOptions ¶
type HttpTransportOptions struct {
WebApiKey string
ResponseCache CacheAdaptor
DumpRequests bool
DumpResponses bool
}
type Persistence ¶
type Persistence int
const ( InvalidSessionPersistence Persistence = -1 EphemeralSessionPersistence Persistence = 0 PersistentSessionPersistence Persistence = 1 )
type PlatformType ¶
type PlatformType int
const ( UnknownPlatformType PlatformType = iota SteamClientPlatformType WebBrowserPlatformType MobileAppPlatformType )
type TokenRenewalType ¶
type TokenRenewalType int
const ( NoneRenewalType TokenRenewalType = iota AllowRenewalType )
Click to show internal directories.
Click to hide internal directories.