eth

package
v0.0.2-alpha.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Allergen

type Allergen struct {
	AllergenID int    `json:"allergen_id"`
	Label      string `json:"label"`
}

func (Allergen) MarshalEasyJSON

func (v Allergen) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Allergen) MarshalJSON

func (v Allergen) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Allergen) UnmarshalEasyJSON

func (v *Allergen) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Allergen) UnmarshalJSON

func (v *Allergen) UnmarshalJSON(data []byte) error

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

func (v Facility) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Facility) MarshalJSON

func (v Facility) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Facility) UnmarshalEasyJSON

func (v *Facility) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Facility) UnmarshalJSON

func (v *Facility) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Hours

type Hours struct {
	Opening  []Opening  `json:"opening"`
	Mealtime []Mealtime `json:"mealtime"`
}

func (Hours) MarshalEasyJSON

func (v Hours) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Hours) MarshalJSON

func (v Hours) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Hours) UnmarshalEasyJSON

func (v *Hours) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Hours) UnmarshalJSON

func (v *Hours) UnmarshalJSON(data []byte) error

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

func (v Location) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Location) MarshalJSON

func (v Location) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Location) UnmarshalEasyJSON

func (v *Location) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Location) UnmarshalJSON

func (v *Location) UnmarshalJSON(data []byte) error

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

func (v Meal) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Meal) MarshalJSON

func (v Meal) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Meal) UnmarshalEasyJSON

func (v *Meal) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Meal) UnmarshalJSON

func (v *Meal) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Mealtime

type Mealtime struct {
	From string `json:"from"`
	To   string `json:"to"`
	Type string `json:"type"`
}

func (Mealtime) MarshalEasyJSON

func (v Mealtime) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Mealtime) MarshalJSON

func (v Mealtime) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Mealtime) UnmarshalEasyJSON

func (v *Mealtime) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Mealtime) UnmarshalJSON

func (v *Mealtime) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Mealtype

type Mealtype struct {
	MealtypeID int    `json:"mealtype_id"`
	Label      string `json:"label"`
}

func (Mealtype) MarshalEasyJSON

func (v Mealtype) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Mealtype) MarshalJSON

func (v Mealtype) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Mealtype) UnmarshalEasyJSON

func (v *Mealtype) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Mealtype) UnmarshalJSON

func (v *Mealtype) UnmarshalJSON(data []byte) error

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 struct {
	Date  string `json:"date"`
	Day   string `json:"day"`
	Meals []Meal `json:"meals"`
}
func (v Menu) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (v Menu) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (v *Menu) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (v *Menu) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Opening

type Opening struct {
	From string `json:"from"`
	To   string `json:"to"`
	Type string `json:"type"`
}

func (Opening) MarshalEasyJSON

func (v Opening) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Opening) MarshalJSON

func (v Opening) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Opening) UnmarshalEasyJSON

func (v *Opening) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Opening) UnmarshalJSON

func (v *Opening) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Origin

type Origin struct {
	OriginID int    `json:"origin_id"`
	Label    string `json:"label"`
}

func (Origin) MarshalEasyJSON

func (v Origin) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Origin) MarshalJSON

func (v Origin) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Origin) UnmarshalEasyJSON

func (v *Origin) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Origin) UnmarshalJSON

func (v *Origin) UnmarshalJSON(data []byte) error

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

func (v Price) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Price) MarshalJSON

func (v Price) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Price) UnmarshalEasyJSON

func (v *Price) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Price) UnmarshalJSON

func (v *Price) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Provider

type Provider struct{}

func (*Provider) FetchCanteens

func (p *Provider) FetchCanteens(ctx context.Context, lang string) ([]base.CanteenMetadata, error)

func (*Provider) FetchMenus

func (p *Provider) FetchMenus(ctx context.Context, canteens []base.CanteenRef, date string, daytime string, lang string) ([]base.CanteenMenu, error)

func (*Provider) Id

func (p *Provider) Id() string

func (*Provider) Label

func (p *Provider) Label() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL