Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 DBNode ¶
DBNode contains general node data
func NewDBNodeFromNode ¶
func NewDBNodeFromNode(n *ParserNode) *DBNode
NewDBNodeFromNode creates DB Node from Parser node
type DBNodeList ¶
DBNodeList contains list of general nodes
func NewDBNodeList ¶
func NewDBNodeList() DBNodeList
NewDBNodeList creates new list of general nodes
type Elements ¶
type Elements []Element
Elements contains array of elements
type ParserNode ¶
ParserNode contains general node data
func NewParserNode ¶
func NewParserNode(header string) *ParserNode
NewParserNode creates new geneal node
Click to show internal directories.
Click to hide internal directories.