Documentation ¶
Index ¶
- func RestaurantAvailabilities(data RestaurantAvailabilitySearch) ([]RestaurantAvailability, *RestaurantAvailabilityError)
- type DisneyAuth
- type DisneyToken
- type Restaurant
- type RestaurantAvailability
- type RestaurantAvailabilityError
- type RestaurantAvailabilitySearch
- type RestaurantMealPeriod
- type RestaurantMealSlot
- type RestaurantResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RestaurantAvailabilities ¶
func RestaurantAvailabilities(data RestaurantAvailabilitySearch) ([]RestaurantAvailability, *RestaurantAvailabilityError)
Types ¶
type DisneyAuth ¶
type DisneyAuth struct { Data struct { DisneyToken DisneyToken `json:"token"` } `json:"data"` }
type DisneyToken ¶
type DisneyToken struct { AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` }
func RefreshAuth ¶
func RefreshAuth(refreshToken string) (DisneyToken, error)
type Restaurant ¶
type Restaurant struct { Name string `json:"name"` DisneyID string `json:"id"` BookingAvailable bool `json:"drsApp"` HeroMediaMobile struct { URL string `json:"url"` } `json:"heroMediaMobile"` }
func Restaurants ¶
func Restaurants() ([]Restaurant, error)
type RestaurantAvailability ¶
type RestaurantAvailability struct { StartTime string `json:"startTime"` EndTime string `json:"endTime"` Date string `json:"date"` Status string `json:"status"` MealPeriods []RestaurantMealPeriod `json:"mealPeriods"` }
type RestaurantMealPeriod ¶
type RestaurantMealPeriod struct { MealPeriod string `json:"mealPeriod"` MealSlots []RestaurantMealSlot `json:"slotList"` }
type RestaurantMealSlot ¶
type RestaurantResponse ¶
type RestaurantResponse struct { Data struct { Activities []Restaurant `json:"activities"` } `json:"data"` }
Click to show internal directories.
Click to hide internal directories.