Documentation
¶
Index ¶
- type Allergen
- type FacilitiesListResponse
- type Facility
- type Hours
- type Location
- type Meal
- type Mealtime
- type Mealtype
- type MensaMenuResponse
- type Menu
- type Opening
- type Origin
- type Price
- type Provider
- func (p *Provider) FetchCanteens(ctx context.Context, lang string) ([]base.CanteenMetadata, error)
- func (p *Provider) FetchMenus(ctx context.Context, canteens []base.CanteenRef, date string, daytime string, ...) ([]base.CanteenMenu, error)
- func (p *Provider) Id() string
- func (p *Provider) Label() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Allergen ¶
func (Allergen) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Allergen) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Allergen) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Allergen) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type FacilitiesListResponse ¶
type FacilitiesListResponse struct {
Locations []Location `json:"locations"`
Facilites []Facility `json:"facilites"`
}
func (FacilitiesListResponse) MarshalEasyJSON ¶
func (v FacilitiesListResponse) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (FacilitiesListResponse) MarshalJSON ¶
func (v FacilitiesListResponse) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*FacilitiesListResponse) UnmarshalEasyJSON ¶
func (v *FacilitiesListResponse) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*FacilitiesListResponse) UnmarshalJSON ¶
func (v *FacilitiesListResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Facility ¶
type Facility struct {
ID int `json:"id"`
Label string `json:"label"`
LabelEn string `json:"label_en"`
Type string `json:"type"`
LocationID int `json:"location_id"`
}
func (Facility) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Facility) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Facility) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Facility) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Hours ¶
func (Hours) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Hours) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Hours) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Hours) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Location ¶
type Location struct {
ID int `json:"id"`
Label string `json:"label"`
LabelEn string `json:"label_en"`
}
func (Location) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Location) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Location) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Location) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Meal ¶
type Meal struct {
ID int `json:"id"`
Mealtypes []Mealtype `json:"mealtypes"`
Label string `json:"label"`
Description []string `json:"description"`
Position int `json:"position"`
Prices Price `json:"prices"`
Allergens []Allergen `json:"allergens"`
Origins []Origin `json:"origins"`
}
func (Meal) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Meal) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Meal) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Meal) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Mealtime ¶
func (Mealtime) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Mealtime) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Mealtime) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Mealtime) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Mealtype ¶
func (Mealtype) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Mealtype) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Mealtype) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Mealtype) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type MensaMenuResponse ¶
type MensaMenuResponse struct {
ID int `json:"id"`
Mensa string `json:"mensa"`
Daytime string `json:"daytime"`
Hours Hours `json:"hours"`
Menu Menu `json:"menu"`
}
func (MensaMenuResponse) MarshalEasyJSON ¶
func (v MensaMenuResponse) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (MensaMenuResponse) MarshalJSON ¶
func (v MensaMenuResponse) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*MensaMenuResponse) UnmarshalEasyJSON ¶
func (v *MensaMenuResponse) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*MensaMenuResponse) UnmarshalJSON ¶
func (v *MensaMenuResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Menu ¶
func (Menu) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Menu) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Menu) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Menu) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Opening ¶
func (Opening) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Opening) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Opening) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Opening) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Origin ¶
func (Origin) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Origin) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Origin) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Origin) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Price ¶
type Price struct {
Student string `json:"student"`
Staff string `json:"staff"`
Extern string `json:"extern"`
}
func (Price) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Price) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Price) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Price) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Provider ¶
type Provider struct{}