Versions in this module Expand all Collapse all v0 v0.1.3 May 27, 2022 Changes in this version + const ClassStatusAwaitable + const ClassStatusBookable + const DateFormat + const DateTimeFormat + func NewDefaultHttpClient() http.Client + type Api interface + Authenticate func(request LoginRequest) (*LoginResponse, error) + Authenticated func() bool + BookClass func(request BookClassRequest) error + CancelClassBooking func(request CancelBookingRequest) error + DailyClasses func(request DailyClassesRequest) (*DailyClassesResponse, error) + func NewHttpApi(baseUrl url.URL, httpClient http.Client, debug bool) Api + type BookClassRequest struct + ClassId int64 + type BookingIndicator struct + Available int + Limit int + type CalendarData struct + Classes []Class + type CancelBookingRequest struct + ClassId int64 + type Class struct + BookingIndicator BookingIndicator + Id int64 + Name string + StartTime DateTime + Status string + StatusReason string + Users []ClassUser + type ClassUser struct + Id int64 + IsCurrentUser bool + type DailyClassesRequest struct + ClubId int64 + Date Date + type DailyClassesResponse struct + CalendarData []CalendarData + type Date struct + func (Date *Date) UnmarshalJSON(b []byte) error + func (Date Date) MarshalJSON() ([]byte, error) + type DateTime struct + func (DateTime *DateTime) UnmarshalJSON(b []byte) error + func (DateTime DateTime) MarshalJSON() ([]byte, error) + type LoginRequest struct + Login string + Password string + RememberMe bool + type LoginResponse struct + User User + type Member struct + DefaultClubId int64 + HomeClubId int64 + Id int64 + type User struct + Member Member