Documentation ¶
Index ¶
- type Client
- func (c *Client) Close()
- func (c *Client) DeleteCatalogue(ctx context.Context, id string) (string, error)
- func (c *Client) DeleteProduct(ctx context.Context, id string) (string, error)
- func (c *Client) GetCatalogue(ctx context.Context, id string, userID uint64) (*domain.Catalogue, error)
- func (c *Client) GetMultipleCatalogues(ctx context.Context, skip uint64, take uint64) ([]domain.Catalogue, error)
- func (c *Client) GetMultipleProducts(ctx context.Context, skip uint64, take uint64) ([]domain.Product, error)
- func (c *Client) GetProduct(ctx context.Context, id string, userID string) (*domain.Product, error)
- func (c *Client) PostCatalogue(ctx context.Context, name, details, description, typ string, ...) (string, error)
- func (c *Client) PostProduct(ctx context.Context, name, details, description, typ string, tags []string, ...) (string, error)
- func (c *Client) PutCatalogue(ctx context.Context, id, name, details, description, typ string, ...) (string, error)
- func (c *Client) PutProduct(ctx context.Context, id, name, details, description, typ string, tags []string, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client ...
func (*Client) DeleteCatalogue ¶
DeleteCatalogue removes a catalogue with passed identifier
func (*Client) DeleteProduct ¶
DeleteProduct removes a catalogue with passed identifier
func (*Client) GetCatalogue ¶
func (c *Client) GetCatalogue(ctx context.Context, id string, userID uint64) (*domain.Catalogue, error)
GetCatalogue ...
func (*Client) GetMultipleCatalogues ¶
func (c *Client) GetMultipleCatalogues(ctx context.Context, skip uint64, take uint64) ([]domain.Catalogue, error)
GetMultipleCatalogues is used to get the list of specified catalogues
func (*Client) GetMultipleProducts ¶
func (c *Client) GetMultipleProducts(ctx context.Context, skip uint64, take uint64) ([]domain.Product, error)
GetMultipleProducts is used to get the list of specified catalogues
func (*Client) GetProduct ¶
GetProduct ...
func (*Client) PostCatalogue ¶
func (c *Client) PostCatalogue(ctx context.Context, name, details, description, typ string, prods, tags []string) (string, error)
PostCatalogue ...
func (*Client) PostProduct ¶
func (c *Client) PostProduct(ctx context.Context, name, details, description, typ string, tags []string, price float64, discount float32) (string, error)
PostProduct ...
Click to show internal directories.
Click to hide internal directories.