steam

package
v0.0.0-...-a97d171 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WithTimeout = func(seconds int) func(c *colly.Collector) {

	if seconds == 0 {
		seconds = 10
	}

	return func(c *colly.Collector) {
		c.SetRequestTimeout(time.Duration(seconds) * time.Second)
	}
}

Functions

func AllowSteamCodes

func AllowSteamCodes(err error, allowedCodes ...int) error

func GetSteam

func GetSteam() *steamapi.Client

func GetSteamUnlimited

func GetSteamUnlimited() *steamapi.Client

func LogSteamError

func LogSteamError(err error, interfaces ...zap.Field)

Downgrade some Steam errors to info.

func WithAgeCheckCookie

func WithAgeCheckCookie(c *colly.Collector)

Types

type TempPlayer

type TempPlayer struct {
	ID          int64
	PersonaName string
	Avatar      string
	Level       int
	PlayTime    int
	Games       int
	Friends     int
	VACBans     int
	GameBans    int
	LastBan     time.Time
}

func GetPlayer

func GetPlayer(search string) (player TempPlayer, err error)

Jump to

Keyboard shortcuts

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