steam

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadRequest   = errors.New("please confirm that all required parameters have been sent")
	ErrUnauthorized = errors.New("forbidden Access is denied, retrying will not help, please verify your key parameter")
	ErrForbidden    = errors.New("forbidden Access is forbidden, retrying will not help, please verify your key parameter")
	ErrNotFound     = errors.New("requested url not found")
	ErrNoMethod     = errors.New("method Not allowed")
	ErrExcessive    = errors.New("you are limited by the rate")
	ErrInternal     = errors.New("an unrecoverable error has occurred, please try again")
	ErrUnavailable  = errors.New("the server is temporarily unavailable or too busy to respond, please wait a moment and try again")
)

Functions

func Ids

func Ids(ids ...uint64) string

Ids join several uint id with the ","

Types

type APIKey

type APIKey struct {
	Key string `json:"key" mapstructure:"key"`
}

type AppId

type AppId struct {
	AppId uint `json:"appid" mapstructure:"appid"`
}

type AppIds

type AppIds struct {
	AppIds string `json:"appids" mapstructure:"appids" valid:"required"`
}

type CommonResponse

type CommonResponse = map[string]any

CommonResponse for some interface which need publisher api key are hard to test and no way to know their response, so use this type to replace

type LanguageCode

type LanguageCode = uint
const (
	LangEnglish LanguageCode = iota
	LangGerman
	LangFrench
	LangItalian
	LangKorea
	LangSpanish
	LangSimplifiedChinese
	LangTraditionalChinese
	LangRussian
	LangThai
	LangJapanese
	LangPortugal
	LangPoland
	LangDenmark
	LangNetherlands
	LangFinland
	LangNorway
	LangSweden
	LangHungary
	LangCzech
	LangRomania
	LangTurkey
	LangPortugal1
	LangBulgaria
	LangGreek
	LangUkrainian
	LangUnknown
	LangSpanish1
	LangVietnamese
)

type PlatformSupportedLanguages

type PlatformSupportedLanguages string

PlatformSupportedLanguages see https://partner.steamgames.com/doc/store/localization/languages

type SteamAppId

type SteamAppId struct {
	SteamId uint `json:"steamid" mapstructure:"steamid" valid:"required"`
	AppId   uint `json:"appid" mapstructure:"appid" valid:"required"`
}

type SteamId

type SteamId struct {
	SteamId uint `json:"steamid" mapstructure:"steamid"`
}

type SteamIdString

type SteamIdString struct {
	SteamId string `json:"steamid" mapstructure:"steamid"`
}

type SteamIds

type SteamIds struct {
	SteamIds string `json:"steamids" mapstructure:"steaids" valid:"required"`
}

Jump to

Keyboard shortcuts

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