Documentation ¶
Overview ¶
order holds user order related stuff
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableLog ¶
func DisableLog()
Types ¶
type ErrNotComplete ¶
type ErrNotComplete struct {
// contains filtered or unexported fields
}
func (ErrNotComplete) Error ¶
func (e ErrNotComplete) Error() string
func (ErrNotComplete) OrderNotComplete ¶
func (e ErrNotComplete) OrderNotComplete() bool
type Service ¶
type Service interface { Get(*api.User) *Order InitOrder(*api.User) *Order AddMeal(*api.User, string) *Order RemoveMeal(*api.User, string) *Order SetTime(*api.User, time.Time) *Order SetTakeaway(*api.User, bool) *Order FinishOrder(*api.User) (*Order, bool) }
Service describes order creation operations
func NewInMemoryService ¶
Click to show internal directories.
Click to hide internal directories.