Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemRepository ¶
type ItemRepository interface { CreateItem(ctx context.Context, item *api.Item) (*api.Item, error) GetItem(ctx context.Context, id string) (*api.Item, error) ListItems(ctx context.Context) ([]*api.Item, error) UpdateItem(ctx context.Context, item *api.Item) (*api.Item, error) DeleteItem(ctx context.Context, id string) error }
func NewItemRepository ¶
func NewItemRepository(db Store, itemQuery query.ItemQuery) ItemRepository
type OrderRepository ¶
type OrderRepository interface { CreateOrder(ctx context.Context, order *api.Order) (*api.Order, error) GetOrder(ctx context.Context, id string) (*api.Order, error) ListOrders(ctx context.Context) ([]*api.Order, error) UpdateOrder(ctx context.Context, order *api.Order) (*api.Order, error) DeleteOrder(ctx context.Context, id string) error }
func NewOrderRepository ¶
func NewOrderRepository(db Store, orderQuery query.OrderQuery) OrderRepository
Click to show internal directories.
Click to hide internal directories.