bggclient

package
v0.0.0-...-d479cdb Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {
	ID        string   `xml:"objectid,attr" json:"id"`
	Name      string   `xml:"name" json:"name"`
	Thumbnail string   `xml:"thumbnail" json:"thumbnail"`
	Info      GameInfo `xml:"stats" json:"info"`
}

func GetGameInfo

func GetGameInfo(gameID string) (Game, error)

func GetUserCollection

func GetUserCollection(userID string, r *http.Request) ([]Game, error)

type GameInfo

type GameInfo struct {
	MinPlayers  int `xml:"minplayers,attr" json:"minPlayers"`
	MaxPlayers  int `xml:"maxplayers,attr" json:"maxPlayers"`
	MinPlaytime int `xml:"minplaytime,attr" json:"minPlaytime"`
	MaxPlaytime int `xml:"maxplaytime,attr" json:"maxPlaytime"`
}

Jump to

Keyboard shortcuts

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