client

package
v0.0.0-...-40fc3ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(url string) (*Client, error)

NewClient ...

func (*Client) Close

func (c *Client) Close()

Close ...

func (*Client) DeleteCatalogue

func (c *Client) DeleteCatalogue(ctx context.Context, id string) (string, error)

DeleteCatalogue removes a catalogue with passed identifier

func (*Client) DeleteProduct

func (c *Client) DeleteProduct(ctx context.Context, id string) (string, error)

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

func (c *Client) GetProduct(ctx context.Context, id string, userID string) (*domain.Product, error)

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 ...

func (*Client) PutCatalogue

func (c *Client) PutCatalogue(ctx context.Context, id, name, details, description, typ string, prods, tags []string) (string, error)

PutCatalogue ...

func (*Client) PutProduct

func (c *Client) PutProduct(ctx context.Context, id, name, details, description, typ string, tags []string, price float64, discount float32) (string, error)

PutProduct ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL