Documentation
¶
Index ¶
Constants ¶
View Source
const ( BusynessFeedbackType FeedbackType = "busyness" AvailabilityFeedbackType = "availability" Available AvailabilityValue = "available" Empty BusynessValue = "empty" Average = "average" Busy = "busy" )
View Source
const ( IMAGES_PATH = "static/images/" GroceryShop ShopType = "grocery" Pharmacy = "pharmacy" )
Variables ¶
View Source
var ErrUnknownFilterType = errors.New("unknown filter type, available filter types: busyness, available")
Functions ¶
This section is empty.
Types ¶
type AvailabilityValue ¶
type AvailabilityValue string
type BusynessValue ¶
type BusynessValue string
type Feedback ¶
type Feedback struct {
ShopID string `json:"shop_id"`
ItemGroupID string `json:"item_group_id"`
Type FeedbackType `json:"type"`
Value string `json:"value"`
}
func (Feedback) IsForFilter ¶
type FeedbackType ¶
type FeedbackType string
type Filter ¶
type Filter struct {
Type FilterType
Value string
}
func (*Filter) MarshalJSON ¶
func (*Filter) UnmarshalJSON ¶
type FilterType ¶
type FilterType string
const ( BusynessFilter FilterType = "busyness" AvailableFilter = "available" )
Click to show internal directories.
Click to hide internal directories.