Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct { // message Message string `json:"message,omitempty"` }
APIError Api error
swagger:model ApiError
func (*APIError) ContextValidate ¶
ContextValidate validates this Api error based on context it is used
func (*APIError) MarshalBinary ¶
MarshalBinary interface implementation
func (*APIError) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Ingredient ¶
type Ingredient struct { // description Description string `json:"description,omitempty"` // id ID int64 `json:"id,omitempty" gorm:"primaryKey"` // name Name string `json:"name,omitempty"` }
Ingredient Meal Ingredient
An ingredient for a meal ¶
swagger:model Ingredient
func (*Ingredient) ContextValidate ¶
ContextValidate validates this ingredient based on context it is used
func (*Ingredient) MarshalBinary ¶
func (m *Ingredient) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Ingredient) UnmarshalBinary ¶
func (m *Ingredient) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Meal ¶
type Meal struct { // description Description string `json:"description,omitempty"` // id ID int64 `json:"id,omitempty" gorm:"primaryKey"` // ingredients Ingredients []*Ingredient `json:"ingredients" gorm:"many2many:meal_ingredients"` // kcal Kcal float64 `json:"kcal,omitempty"` // name // Required: true Name *string `json:"name"` // picture Url PictureURL string `json:"pictureUrl,omitempty"` // price Price float64 `json:"price,omitempty"` // tags Tags []*Tag `json:"tags" gorm:"many2many:meal_tags"` }
Meal Meal
A meal ¶
swagger:model Meal
func (*Meal) ContextValidate ¶
ContextValidate validate this meal based on the context it is used
func (*Meal) MarshalBinary ¶
MarshalBinary interface implementation
func (*Meal) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Tag ¶
type Tag struct { // id ID int64 `json:"id,omitempty" gorm:"primaryKey"` // name Name string `json:"name,omitempty"` }
Tag Meal Tag
A tag for a meal ¶
swagger:model Tag
func (*Tag) ContextValidate ¶
ContextValidate validates this tag based on context it is used
func (*Tag) MarshalBinary ¶
MarshalBinary interface implementation
func (*Tag) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Version ¶
type Version struct { // app name AppName string `json:"appName,omitempty"` // build time BuildTime string `json:"buildTime,omitempty"` // go mod GoMod string `json:"goMod,omitempty"` // version Version string `json:"version,omitempty"` }
Version Version
Version and build info ¶
swagger:model Version
func (*Version) ContextValidate ¶
ContextValidate validates this version based on context it is used
func (*Version) MarshalBinary ¶
MarshalBinary interface implementation
func (*Version) UnmarshalBinary ¶
UnmarshalBinary interface implementation