steam

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 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 added in v1.2.0

func Ids(ids ...uint64) string

Ids join several uint id with the ","

Types

type APIKey added in v1.2.0

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

type AppId added in v1.2.0

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

type AppIds added in v1.2.0

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

type CommonResponse added in v1.2.0

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 added in v1.2.0

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

type SteamId added in v1.2.0

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

type SteamIdString added in v1.2.0

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

type SteamIds added in v1.2.0

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