Documentation ¶
Index ¶
- Variables
- func IsInvalidFinishTime(t time.Time) bool
- type Client
- func (client *Client) GetActiveContests() ([]Contest, error)
- func (client *Client) GetLanguage() string
- func (client *Client) GetRecentContests() ([]Contest, error)
- func (client *Client) GetUpcomingContests() ([]Contest, error)
- func (client *Client) Login() error
- func (client *Client) SetLanguage(lang string)
- type Contest
- type Standings
- type StandingsResponse
- type StandingsTask
- type StandingsUser
- type StandingsUserTask
Constants ¶
This section is empty.
Variables ¶
View Source
var JapanZone = time.FixedZone("JST", 9*60*60)
JapanZone 東京のタイムゾーン
Functions ¶
func IsInvalidFinishTime ¶
Types ¶
type Client ¶
type Client struct {
ID, Pass string
Client *http.Client
// contains filtered or unexported fields
}
func (*Client) GetActiveContests ¶
func (*Client) GetLanguage ¶
func (*Client) GetRecentContests ¶
func (*Client) GetUpcomingContests ¶
func (*Client) SetLanguage ¶
type Contest ¶
type Contest struct { Title string StartTime time.Time FinishTime time.Time URL string TitleInURL string // contains filtered or unexported fields }
func (*Contest) GetMyStatus ¶
func (*Contest) UpdateClient ¶
type Standings ¶
type Standings struct { Rank int `json:"rank,omitempty"` // What's this? Tasks []StandingsTask `json:"tasks"` Users []StandingsUser `json:"users"` }
type StandingsResponse ¶
type StandingsResponse struct { Status int `json:"status"` Message string `json:"message"` Response []struct { Rank int `json:"rank,omitempty"` Tasks []struct { StandingsTask StandingsUserTask } `json:"tasks"` UserName string `json:"user_name,omitempty"` UserScreenName string `json:"user_screen_name,omitempty"` Failure string `json:"failure,omitempty"` Penalty string `json:"penalty,omitempty"` Score int `json:"score,omitempty"` } `json:"response"` Count int `json:"count"` }
StandingsResponse was generated With JSON-to-Go
type StandingsTask ¶
type StandingsUser ¶
Click to show internal directories.
Click to hide internal directories.