Documentation
¶
Index ¶
- func FromOrderBson(o *orderBson) *domain.Order
- type OrderRepository
- func (r *OrderRepository) Create(ctx context.Context, o *domain.Order) error
- func (r *OrderRepository) Get(ctx context.Context, id string) (*domain.Order, error)
- func (r *OrderRepository) GetAll(ctx context.Context) ([]*domain.Order, error)
- func (r *OrderRepository) Update(ctx context.Context, o *domain.Order) error
- type Store
- func (store *Store) FindAll(ctx context.Context, collection string, query, result interface{}) error
- func (store *Store) FindOne(ctx context.Context, collection string, query interface{}, ...) error
- func (store *Store) Store(ctx context.Context, collection string, data interface{}) error
- func (store *Store) Update(ctx context.Context, collection string, query, update interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromOrderBson ¶
Types ¶
type OrderRepository ¶
type OrderRepository struct {
// contains filtered or unexported fields
}
func NewOrderRepository ¶
func NewOrderRepository(mongoStore *Store) *OrderRepository
Click to show internal directories.
Click to hide internal directories.