Versions in this module Expand all Collapse all v0 v0.0.1 Oct 15, 2018 Changes in this version + type Client struct + HTTPClient http.Client + Token string + URL string + UserName string + func NewClient(userName, token string) *Client + func (c *Client) UpdateToken(newToken string) error + func (c Client) CreateGraph(gi GraphInfo) error + func (c Client) DecrementPixelQuantity(id string) error + func (c Client) DeleteGraph(id string) error + func (c Client) DeletePixelQuantity(id, date string) error + func (c Client) DeleteUser() error + func (c Client) GetGraph(id, date string) (string, error) + func (c Client) GetPixelQuantity(id, date string) (float64, error) + func (c Client) IncrementPixelQuantity(id string) error + func (c Client) ListGraph() ([]GraphInfo, error) + func (c Client) RegisterPixel(id, date, quantity string) error + func (c Client) RegisterUser(agree, notMinor string) error + func (c Client) UpdateGraph(gi GraphInfo) error + func (c Client) UpdatePixelQuantity(id, date, quantity string) error + type GraphInfo struct + Color string + ID string + Name string + Unit string + UnitType string + func (gi GraphInfo) Validate() error