Documentation ¶
Index ¶
- func AdminUserExists() bool
- func CreateItem(item constants.ItemInsert) error
- func CreateList(userId int, name string, description string) (int, error)
- func DeleteItem(itemId int) error
- func DeleteList(listId int, confirmationName string) (bool, error)
- func DeleteUser(userId int) error
- func GenerateShareCode(listId int) (string, error)
- func GetAllUsers() ([]constants.UserRead, error)
- func GetItem(itemId int) (constants.Item, error)
- func GetList(listId int) (constants.List, error)
- func GetListFromShareCode(shareCode string) (constants.List, error)
- func GetListItems(listId int) ([]constants.Item, error)
- func GetLists(userId int) ([]constants.List, error)
- func GetUserGroupId(userId int) (int, error)
- func GetUsersInSameGroupAsUser(userId int) ([]constants.UserRead, error)
- func ListNameTaken(userId int, name string) (bool, error)
- func LoginUser(email, password string) (int, error)
- func RegisterUser(user constants.UserRegister) error
- func SetUserAdmin(userId int, admin bool) error
- func UnpublishShareCode(listId int) error
- func UpdateItem(itemId int, item constants.ItemInsert) error
- func UpdateList(listId int, params constants.ListPostParams) error
- func UserIsAdmin(userId int) (bool, error)
- func UserOwnsList(userId int, listId int) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminUserExists ¶
func AdminUserExists() bool
func CreateItem ¶
func CreateItem(item constants.ItemInsert) error
func DeleteItem ¶
func DeleteUser ¶ added in v1.7.0
func GenerateShareCode ¶
func GetAllUsers ¶
func GetUserGroupId ¶ added in v1.7.0
func GetUsersInSameGroupAsUser ¶ added in v1.7.0
func RegisterUser ¶
func RegisterUser(user constants.UserRegister) error
func SetUserAdmin ¶ added in v1.7.0
func UnpublishShareCode ¶
func UpdateItem ¶
func UpdateItem(itemId int, item constants.ItemInsert) error
func UpdateList ¶
func UpdateList(listId int, params constants.ListPostParams) error
func UserIsAdmin ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.