Documentation
¶
Index ¶
- Constants
- type Items
- func (i *Items) GetByID(ctx context.Context, id string) (*model.Item, error)
- func (i *Items) ListAll(ctx context.Context, page common.Page) ([]*model.Item, error)
- func (i *Items) ListAvailableAt(ctx context.Context, date time.Time, page common.Page) ([]*model.Item, error)
- func (i *Items) Update(ctx context.Context, item *model.Item) (*model.Item, error)
Constants ¶
View Source
const (
ItemBucket = "items"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Items ¶
type Items struct {
// contains filtered or unexported fields
}
func (*Items) ListAll ¶
ListAll obtains all items from storage, using the supplied pagination information
func (*Items) ListAvailableAt ¶
func (i *Items) ListAvailableAt(ctx context.Context, date time.Time, page common.Page) ([]*model.Item, error)
ListAvailableAt currently isn't implemented - more complicated implementation, will need to be able to query on the availability schedule which will likely want a different storage structure for this data.
Click to show internal directories.
Click to hide internal directories.