Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateAccount(ctx context.Context, path string, payload *app.CreateAccountPayload) (*http.Response, error)
- func (c *Client) CreateBottle(ctx context.Context, path string, payload *app.CreateBottlePayload) (*http.Response, error)
- func (c *Client) DeleteAccount(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) DeleteBottle(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ListBottle(ctx context.Context, path string, years []int) (*http.Response, error)
- func (c *Client) RateBottle(ctx context.Context, path string, payload *app.RateBottlePayload) (*http.Response, error)
- func (c *Client) ShowAccount(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ShowBottle(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) UpdateAccount(ctx context.Context, path string, payload *app.UpdateAccountPayload) (*http.Response, error)
- func (c *Client) UpdateBottle(ctx context.Context, path string, payload *app.UpdateBottlePayload) (*http.Response, error)
- func (c *Client) WatchBottle(ctx context.Context, path string) (*websocket.Conn, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is the cellar service client.
func (*Client) CreateAccount ¶
func (c *Client) CreateAccount(ctx context.Context, path string, payload *app.CreateAccountPayload) (*http.Response, error)
Create new account
func (*Client) CreateBottle ¶
func (c *Client) CreateBottle(ctx context.Context, path string, payload *app.CreateBottlePayload) (*http.Response, error)
Record new bottle
func (*Client) DeleteAccount ¶
DeleteAccount makes a request to the delete action endpoint of the account resource
func (*Client) DeleteBottle ¶
DeleteBottle makes a request to the delete action endpoint of the bottle resource
func (*Client) ListBottle ¶
List all bottles in account optionally filtering by year
func (*Client) RateBottle ¶
func (c *Client) RateBottle(ctx context.Context, path string, payload *app.RateBottlePayload) (*http.Response, error)
RateBottle makes a request to the rate action endpoint of the bottle resource
func (*Client) ShowAccount ¶
Retrieve account with given id
func (*Client) ShowBottle ¶
Retrieve bottle with given id
func (*Client) UpdateAccount ¶
func (c *Client) UpdateAccount(ctx context.Context, path string, payload *app.UpdateAccountPayload) (*http.Response, error)
Change account name
Click to show internal directories.
Click to hide internal directories.