games

package
v0.0.0-...-2927688 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const SteamStoreURL = "http://store.steampowered.com/explore/new/"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	StoreURL string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(prefix, store_url string) (client *Client)

func (*Client) SearchSteamUser

func (cli *Client) SearchSteamUser(username, steamid string) (user *SteamUser, err error)

func (*Client) SteamShowNew

func (cli *Client) SteamShowNew() (items []*GameItem)

type GameItem

type GameItem struct {
	GameURL            string
	GameThumbnail      string
	CurrentPrice       float64
	RegularPrice       float64
	DiscountPercentage int
	Platforms          []string
}

func (*GameItem) IsComplete

func (gi *GameItem) IsComplete() (result bool)

type SteamUser

type SteamUser struct {
	SteamID        string
	PersonaName    string
	Friends        []string
	FriendsCrawled bool
}

Jump to

Keyboard shortcuts

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