Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCollectionNotFound = errors.New("collection not found") ErrUserNotFound = errors.New("user not found") ErrExpiredToken = errors.New("token already expired") ErrInvalidToken = errors.New("token invalid") ErrQRRecordNotExist = errors.New("qr record not exist") ErrJwtIncorrect = errors.New("invalid jwt") ErrDeviceNotFound = errors.New("device not found") )
View Source
var BeverageTypeStringMap = map[BeverageType]string{ TeaBeverageType: "tea", HerbBeverageType: "herb", CoffeeBeverageType: "coffee", OtherBeverageType: "other", }
Functions ¶
This section is empty.
Types ¶
type BeverageType ¶
type BeverageType int
const ( TeaBeverageType BeverageType = iota HerbBeverageType CoffeeBeverageType OtherBeverageType )
func StringToBeverageType ¶
func StringToBeverageType(str string) BeverageType
func (BeverageType) String ¶
func (b BeverageType) String() string
type Collection ¶
type CollectionRecord ¶
type Notification ¶
type Notification struct { UserID uuid.UUID Type NotificationType }
type NotificationType ¶
type NotificationType int
const ( NotificationTypeTeaExpiration NotificationType = iota NotificationTypeTeaRecommendation )
type TagCategory ¶
type TeaData ¶
type TeaData struct { Name string `json:"name"` Type BeverageType `json:"type"` Description string `json:"description"` }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.