Documentation ¶
Index ¶
- type Client
- 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
- func (c *Client) UpdateToken(newToken string) error
- type GraphInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is Client for access to pixe.la service
func (Client) CreateGraph ¶
CreateGraph create new graph
func (Client) DecrementPixelQuantity ¶
DecrementPixelQuantity decrement quantity of the Day
func (Client) DeleteGraph ¶
DeleteGraph delete specific graphs
func (Client) DeletePixelQuantity ¶
DeletePixelQuantity dlete quantity for already registered pixel
func (Client) GetPixelQuantity ¶
GetPixelQuantity get quantity from specific pixel
func (Client) IncrementPixelQuantity ¶
IncrementPixelQuantity increment quantity of the Day
func (Client) RegisterPixel ¶
RegisterPixel Register specific pixel
func (Client) RegisterUser ¶
RegisterUser is register new user
func (Client) UpdateGraph ¶
UpdateGraph update specific graphs's information
func (Client) UpdatePixelQuantity ¶
UpdatePixelQuantity update quantity for already registered pixel
func (*Client) UpdateToken ¶
UpdateToken update user's token
Click to show internal directories.
Click to hide internal directories.