Documentation ¶
Index ¶
- type Store
- func (_m *Store) DeleteCustomerByID(ctx context.Context, id string) error
- func (_m *Store) DeleteOrderByID(ctx context.Context, id string) error
- func (_m *Store) DeleteProductByID(ctx context.Context, id string) error
- func (_m *Store) GetCustomerByID(ctx context.Context, id string) (v1.Customer, error)
- func (_m *Store) GetCustomers(ctx context.Context) ([]v1.Customer, error)
- func (_m *Store) GetOrderByID(ctx context.Context, id string) (v1.Order, error)
- func (_m *Store) GetOrders(ctx context.Context) ([]v1.Order, error)
- func (_m *Store) GetProductByID(ctx context.Context, id string) (v1.Product, error)
- func (_m *Store) GetProducts(ctx context.Context) ([]v1.Product, error)
- func (_m *Store) PostCustomer(ctx context.Context, customer v1.Customer) (v1.Customer, error)
- func (_m *Store) PostOrder(ctx context.Context, order v1.Order) (v1.Order, error)
- func (_m *Store) PostProduct(ctx context.Context, product v1.Product) (v1.Product, error)
- func (_m *Store) UpdateCustomerByID(ctx context.Context, customer v1.Customer) (v1.Customer, error)
- func (_m *Store) UpdateOrderByID(ctx context.Context, order v1.Order) (v1.Order, error)
- func (_m *Store) UpdateProductByID(ctx context.Context, product v1.Product) (v1.Product, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
Store is an autogenerated mock type for the Store type
func NewStore ¶
NewStore creates a new instance of Store. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Store) DeleteCustomerByID ¶
DeleteCustomerByID provides a mock function with given fields: ctx, id
func (*Store) DeleteOrderByID ¶
DeleteOrderByID provides a mock function with given fields: ctx, id
func (*Store) DeleteProductByID ¶
DeleteProductByID provides a mock function with given fields: ctx, id
func (*Store) GetCustomerByID ¶
GetCustomerByID provides a mock function with given fields: ctx, id
func (*Store) GetCustomers ¶
GetCustomers provides a mock function with given fields: ctx
func (*Store) GetOrderByID ¶
GetOrderByID provides a mock function with given fields: ctx, id
func (*Store) GetProductByID ¶
GetProductByID provides a mock function with given fields: ctx, id
func (*Store) GetProducts ¶
GetProducts provides a mock function with given fields: ctx
func (*Store) PostCustomer ¶
PostCustomer provides a mock function with given fields: ctx, customer
func (*Store) PostProduct ¶
PostProduct provides a mock function with given fields: ctx, product
func (*Store) UpdateCustomerByID ¶
UpdateCustomerByID provides a mock function with given fields: ctx, customer
func (*Store) UpdateOrderByID ¶
UpdateOrderByID provides a mock function with given fields: ctx, order