Documentation ¶
Overview ¶
Package maria provides storage implementations for MariaDB.
Package maria provides storage implementations for MariaDB.
Package maria provides storage implementations for MariaDB.
Package maria provides storage implementations for MariaDB.
Package maria provides storage implementations for MariaDB.
Package maria provides storage implementations for MariaDB.
Package maria provides storage implementations for MariaDB.
Package maria provides storage implementations for MariaDB.
Package maria provides storage implementations for MariaDB.
Package maria provides storage implementations for MariaDB.
Index ¶
- type Category
- type Characteristic
- type Configuration
- func (c *Configuration) Create() error
- func (c *Configuration) Drop() error
- func (c *Configuration) FindByPosition(positionID uint64) ([]model.Configuration, error)
- func (c *Configuration) FindVariants(id uint64) ([]model.Variant, error)
- func (c *Configuration) Store(positionID uint64, configuration *model.Configuration) (uint64, error)
- func (c *Configuration) StoreVariant(configurationID uint64, variant *model.Variant) (uint64, error)
- type Dish
- type Offer
- func (o *Offer) Cancel(id uint64) error
- func (o *Offer) Create() error
- func (o *Offer) Drop() error
- func (o *Offer) Find(id uint64) (model.Offer, error)
- func (o *Offer) FindValid(now time.Time) ([]model.Offer, error)
- func (o *Offer) FindValidTill(to time.Time) ([]model.Offer, error)
- func (o *Offer) OrderingUsers(id uint64) ([]model.User, error)
- func (o *Offer) OwnerID(id uint64) (uint64, error)
- func (o *Offer) SetReadyAt(id uint64, readyAt time.Time) error
- func (o *Offer) Store(offer *model.Offer) error
- type Order
- func (o *Order) Create() error
- func (o *Order) Drop() error
- func (o *Order) FindByOffer(offerID uint64) ([]model.Order, error)
- func (o *Order) FindByOfferAndUser(offerID, userID uint64) (model.Order, error)
- func (o *Order) MarkAsPaid(id uint64) error
- func (o *Order) Store(offerID uint64, order *model.Order) (uint64, error)
- type Position
- type Restaurant
- type User
- func (u *User) ConfirmUser(token string) error
- func (u *User) Create() error
- func (u *User) Drop() error
- func (u *User) Find(id uint64) (model.User, error)
- func (u *User) FindByMailAddr(mailAddr string) (model.User, error)
- func (u *User) MailExists(mailAddr string) (bool, error)
- func (u *User) SetPaypalMailAddr(id uint64, paypalMailAddr string) error
- func (u *User) Store(user *model.User) (uint64, error)
- func (u *User) StoreConfirmationToken(userID uint64, token string) error
- type Variant
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
func NewCategory ¶
type Characteristic ¶
func NewCharacteristic ¶
func NewCharacteristic(db *sqlx.DB) *Characteristic
func (*Characteristic) Create ¶
func (c *Characteristic) Create() error
func (*Characteristic) Drop ¶
func (c *Characteristic) Drop() error
func (*Characteristic) FindByDish ¶
func (c *Characteristic) FindByDish(dishID uint64) ([]model.Characteristic, error)
type Configuration ¶
func NewConfiguration ¶
func NewConfiguration(db *sqlx.DB) *Configuration
func (*Configuration) Create ¶
func (c *Configuration) Create() error
func (*Configuration) Drop ¶
func (c *Configuration) Drop() error
func (*Configuration) FindByPosition ¶
func (c *Configuration) FindByPosition(positionID uint64) ([]model.Configuration, error)
func (*Configuration) FindVariants ¶
func (c *Configuration) FindVariants(id uint64) ([]model.Variant, error)
func (*Configuration) Store ¶
func (c *Configuration) Store(positionID uint64, configuration *model.Configuration) (uint64, error)
func (*Configuration) StoreVariant ¶
type Restaurant ¶
func NewRestaurant ¶
func NewRestaurant(db *sqlx.DB) *Restaurant
func (*Restaurant) Create ¶
func (r *Restaurant) Create() error
func (*Restaurant) Drop ¶
func (r *Restaurant) Drop() error
func (*Restaurant) Find ¶
func (r *Restaurant) Find(id uint64) (model.Restaurant, error)
type Variant ¶
func NewVariant ¶
Click to show internal directories.
Click to hide internal directories.