Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lobby ¶
type Lobby struct { ID int `json:"id" db:"id"` Restaurant *Restaurant `json:"restaurant,omitempty"` Expires *time.Time `json:"expires,omitempty" db:"expires"` Location *Location `json:"location,omitempty"` }
type LobbyService ¶
type LobbyService interface { List(ctx context.Context) ([]*Lobby, error) Create( ctx context.Context, restaurantID int, ownerID int, expires *time.Time, address string, ) (*Lobby, error) Edit( ctx context.Context, lobbyID int, restaurantID int, ownerID int, expires *time.Time, address string, ) (*Lobby, error) Join(ctx context.Context, lobbyID int, clientID int) (*Lobby, error) Get(ctx context.Context, userID int, lobbyID int) (*Lobby, error) Clean(ctx context.Context) BelongsToLobby(ctx context.Context, userID int, lobbyID int) (bool, error) AddToCart(ctx context.Context, userID int, lobbyID int, mealID int) (*CartState, error) DelFromCart(ctx context.Context, userID int, lobbyID int, mealID int) (*CartState, error) CollectCartInfo(ctx context.Context, userID int, lobbyID int) (*CartState, error) }
type LobbyStore ¶
type LobbyStore interface { List(ctx context.Context) ([]*Lobby, error) Create( ctx context.Context, restaurantID int, ownerID int, expires *time.Time, address string, ) (*Lobby, error) Edit( ctx context.Context, lobbyID int, restaurantID int, ownerID int, expires *time.Time, address string, ) (*Lobby, error) Join(ctx context.Context, lobbyID int, clientID int) error Get(ctx context.Context, lobbyID int) (*Lobby, error) Clean(ctx context.Context) BelongsToLobby(ctx context.Context, userID int, lobbyID int) (bool, error) AddToCart(ctx context.Context, userID int, lobbyID int, mealID int) error DelFromCart(ctx context.Context, userID int, lobbyID int, mealID int) error CollectCartInfo(ctx context.Context, userID int, lobbyID int) (*CartState, error) Available(ctx context.Context, id int) error }
type Restaurant ¶
type RestaurantService ¶
type RestaurantStore ¶
type UserService ¶
Click to show internal directories.
Click to hide internal directories.