Discover Packages
github.com/corentings/chessbet
pkg
lichess
package
Version:
v0.0.0-...-5fa4e64
Opens a new window with list of versions in this module.
Published: Nov 16, 2024
License: AGPL-3.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const (
BaseURL = "https://lichess.org"
BroadcastsURL = BaseURL + "/api/broadcast/"
)
type Broadcast struct {
Tour Tour `json:"tour"`
Rounds []Round `json:"rounds"`
}
type Game struct {
ID string `json:"id"`
Name string `json:"name"`
Status string `json:"status"`
Players []Player `json:"players"`
ThinkTime int `json:"thinkTime"`
}
type Player struct {
Name string `json:"name"`
Title string `json:"title"`
Fed string `json:"fed"`
Rating int `json:"rating"`
}
type Round struct {
ID string `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
URL string `json:"url"`
CreatedAt int64 `json:"createdAt"`
StartsAt int64 `json:"startsAt"`
}
type RoundDetails struct {
Tour Tour `json:"tour"`
Games []Game `json:"games"`
Round Round `json:"round"`
Study Study `json:"study"`
}
type Study struct {
Writeable bool `json:"writeable"`
}
type Tour struct {
ID string `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Description string `json:"description"`
URL string `json:"url"`
CreatedAt int64 `json:"createdAt"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.