Documentation ¶
Index ¶
- type Service
- func (s Service) AuthenticateSession(sid string) (model.Session, error)
- func (s Service) AuthenticateUser(name, password string) (model.Session, error)
- func (s Service) CreateShoppingList(list model.ShoppingList) (model.ShoppingList, error)
- func (s Service) CreateShoppingListEntry(listID string, entry model.Entry) (model.Entry, error)
- func (s Service) CreateUser(u model.User) (model.User, error)
- func (s Service) DeleteShoppingList(id string) error
- func (s Service) DeleteShoppingListEntry(id string) error
- func (s Service) GetShoppingList(id string) (model.ShoppingList, error)
- func (s Service) GetShoppingListEntries(id string) ([]model.Entry, error)
- func (s Service) GetShoppingLists() ([]model.ShoppingList, error)
- func (s Service) GetUsers() ([]model.User, error)
- func (s Service) UpdateShoppingListEntry(entry model.Entry) (model.Entry, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (Service) AuthenticateSession ¶
func (Service) AuthenticateUser ¶
func (Service) CreateShoppingList ¶
func (s Service) CreateShoppingList(list model.ShoppingList) (model.ShoppingList, error)
func (Service) CreateShoppingListEntry ¶
func (Service) DeleteShoppingList ¶
func (Service) DeleteShoppingListEntry ¶
func (Service) GetShoppingList ¶
func (s Service) GetShoppingList(id string) (model.ShoppingList, error)
func (Service) GetShoppingListEntries ¶
func (Service) GetShoppingLists ¶
func (s Service) GetShoppingLists() ([]model.ShoppingList, error)
Click to show internal directories.
Click to hide internal directories.