Versions in this module Expand all Collapse all v1 v1.0.0 Dec 5, 2022 Changes in this version + type Address struct + Attributes AddressAttributes + type AddressAttributes struct + Building int64 + City string + District string + PostalCode string + Region string + Street string + type AddressListResponse struct + Data []Address + Included Included + Links *Links + type AddressResponse struct + Data Address + Included Included + type Delivery struct + Attributes DeliveryAttributes + Relationships DeliveryRelationships + type DeliveryAttributes struct + Date time.Time + Price float64 + type DeliveryListResponse struct + Data []Delivery + Included Included + Links *Links + type DeliveryRelationships struct + Destination Relation + Source Relation + type DeliveryResponse struct + Data Delivery + Included Included + type Details json.RawMessage + func (d *Details) UnmarshalJSON(data []byte) error + func (d Details) MarshalJSON() ([]byte, error) + func (d Details) String() string + func (r *Details) Scan(src interface{}) error + func (r Details) Value() (driver.Value, error) + type Flag struct + Name string + Value int32 + type Flagger interface + IsFlag func() bool + type Flags struct + Mask int32 + Values []Flag + func FlagsFromMask(mask int32, allFlags map[int32]string) Flags + type Included struct + func (c *Included) Add(includes ...Resource) + func (c *Included) MustAddress(key Key) *Address + func (c *Included) MustDelivery(key Key) *Delivery + func (c *Included) MustIngredient(key Key) *Ingredient + func (c *Included) MustUsedIngredient(key Key) *UsedIngredient + func (c *Included) MustWarehouse(key Key) *Warehouse + func (c *Included) MustWarehouseIngredient(key Key) *WarehouseIngredient + func (c *Included) UnmarshalJSON(data []byte) error + func (c Included) MarshalJSON() ([]byte, error) + type Ingredient struct + Attributes IngredientAttributes + type IngredientAttributes struct + Name string + type IngredientListResponse struct + Data []Ingredient + Included Included + Links *Links + type IngredientResponse struct + Data Ingredient + Included Included + type Key struct + ID string + Type ResourceType + func NewKeyInt64(id int64, resourceType ResourceType) Key + func (r *Key) GetKey() Key + func (r Key) AsRelation() *Relation + func (r Key) GetKeyP() *Key + type Links struct + First string + Last string + Next string + Prev string + Self string + type Relation struct + Data *Key + Links *Links + type RelationCollection struct + Data []Key + Links *Links + func (r RelationCollection) MarshalJSON() ([]byte, error) + type Resource interface + GetKey func() Key + type ResourceType string + const ADDRESS + const DELIVERY + const INGREDIENT + const USED_INGREDIENT + const WAREHOUSE + const WAREHOUSE_INGREDIENT + type UsedIngredient struct + Attributes UsedIngredientAttributes + type UsedIngredientAttributes struct + DeletionDate time.Time + Name string + Origin string + Price float64 + Quantity int64 + Reason string + type UsedIngredientListResponse struct + Data []UsedIngredient + Included Included + Links *Links + type UsedIngredientResponse struct + Data UsedIngredient + Included Included + type Warehouse struct + Attributes WarehouseAttributes + Relationships WarehouseRelationships + type WarehouseAttributes struct + CafeId int64 + Capacity int64 + type WarehouseIngredient struct + Attributes WarehouseIngredientAttributes + Relationships WarehouseIngredientRelationships + type WarehouseIngredientAttributes struct + ExpirationDate time.Time + Origin string + Price float64 + Quantity int64 + type WarehouseIngredientListResponse struct + Data []WarehouseIngredient + Included Included + Links *Links + type WarehouseIngredientRelationships struct + Delivery Relation + Ingredient Relation + Warehouse Relation + type WarehouseIngredientResponse struct + Data WarehouseIngredient + Included Included + type WarehouseListResponse struct + Data []Warehouse + Included Included + Links *Links + type WarehouseRelationships struct + Address Relation + type WarehouseResponse struct + Data Warehouse + Included Included