service

package
v0.0.0-...-495f6ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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 New

func New(store storage.Store) Service

func (Service) AuthenticateSession

func (s Service) AuthenticateSession(sid string) (model.Session, error)

func (Service) AuthenticateUser

func (s Service) AuthenticateUser(name, password string) (model.Session, error)

func (Service) CreateShoppingList

func (s Service) CreateShoppingList(list model.ShoppingList) (model.ShoppingList, error)

func (Service) CreateShoppingListEntry

func (s Service) CreateShoppingListEntry(listID string, entry model.Entry) (model.Entry, error)

func (Service) CreateUser

func (s Service) CreateUser(u model.User) (model.User, error)

func (Service) DeleteShoppingList

func (s Service) DeleteShoppingList(id string) error

func (Service) DeleteShoppingListEntry

func (s Service) DeleteShoppingListEntry(id string) error

func (Service) GetShoppingList

func (s Service) GetShoppingList(id string) (model.ShoppingList, error)

func (Service) GetShoppingListEntries

func (s Service) GetShoppingListEntries(id string) ([]model.Entry, error)

func (Service) GetShoppingLists

func (s Service) GetShoppingLists() ([]model.ShoppingList, error)

func (Service) GetUsers

func (s Service) GetUsers() ([]model.User, error)

func (Service) UpdateShoppingListEntry

func (s Service) UpdateShoppingListEntry(entry model.Entry) (model.Entry, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL