Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct { IsError bool `json:"is_error"` Code int `json:"code"` Status string `json:"status"` Message string `json:"message"` }
APIError holds service error
type APINode ¶
type APINode struct { Name string `json:"name"` Slug string `json:"slug"` Calories float64 `json:"calories"` Fat float64 `json:"fat"` Carbohydrate float64 `json:"carbohydrate"` Protein float64 `json:"protein"` Barcode string `json:"barcode,omitempty"` UserId string `json:"-"` Created time.Time `json:"created"` }
APINode contains single node
type Elements ¶
type Elements []*Element
Elements contains array of elements
Click to show internal directories.
Click to hide internal directories.