Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllNotificationType = []NotificationType{ NotificationTypeUnknown, NotificationTypeTeaExpiration, NotificationTypeTeaRecommendation, }
View Source
var AllType = []Type{ TypeUnknown, TypeTea, TypeCoffee, TypeHerb, TypeOther, }
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Notification ¶
type Notification struct {
Type NotificationType `json:"type"`
}
type NotificationType ¶
type NotificationType string
const ( NotificationTypeUnknown NotificationType = "unknown" NotificationTypeTeaExpiration NotificationType = "teaExpiration" NotificationTypeTeaRecommendation NotificationType = "teaRecommendation" )
func (*NotificationType) FromCommon ¶
func (t *NotificationType) FromCommon(data common.NotificationType)
func (NotificationType) IsValid ¶
func (e NotificationType) IsValid() bool
func (NotificationType) MarshalGQL ¶
func (e NotificationType) MarshalGQL(w io.Writer)
func (NotificationType) String ¶
func (e NotificationType) String() string
func (*NotificationType) UnmarshalGQL ¶
func (e *NotificationType) UnmarshalGQL(v interface{}) error
type QRRecordData ¶
type Tag ¶
type Tag struct { ID common.ID `json:"id"` Name string `json:"name"` Color string `json:"color"` Category *TagCategory `json:"category"` }
type TagCategory ¶
type Tea ¶
type Tea struct { ID common.ID `json:"id"` Name string `json:"name"` Type Type `json:"type"` Description string `json:"description"` Tags []*Tag `json:"tags"` }
func FromCommonTea ¶
func (*Tea) ToCommonTea ¶
type TeaData ¶
type TeaData struct { Name string `json:"name"` Type Type `json:"type"` Description string `json:"description"` }
func (*TeaData) ToCommonTeaData ¶
type Type ¶
type Type string
func FromBeverageType ¶
func FromBeverageType(bt common.BeverageType) Type
func (Type) MarshalGQL ¶
func (Type) ToBeverageType ¶
func (t Type) ToBeverageType() common.BeverageType
func (*Type) UnmarshalGQL ¶
type User ¶
type User struct { TokenExpiredAt time.Time `json:"tokenExpiredAt"` Collections []*Collection `json:"collections"` Notifications []*Notification `json:"notifications"` }
Click to show internal directories.
Click to hide internal directories.