models

package
v0.0.0-...-b35021f Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptAdmins

func AcceptAdmins(accept types.AcceptAdmins) (string, error)

func AcceptCheckIn

func AcceptCheckIn(checkout types.CheckIn) (string, error)

func AcceptCheckOut

func AcceptCheckOut(checkout types.CheckOut) (string, error)

func AddBooks

func AddBooks(book types.Book) (bool, error)

func BooksList

func BooksList() ([]types.Book, error)

func ClientPerBookTransactions

func ClientPerBookTransactions(user types.CookieUser, bookId int) ([]types.ClientBookViewTransactionsInterpretable, error)

func Connection

func Connection() (*sql.DB, error)

func DeleteBooks

func DeleteBooks(bookID int) (bool, error)

func FlipAdmin

func FlipAdmin(user types.CookieUser) error

func GetBook

func GetBook(title string) (types.Book, error)

func GetCheckRequests

func GetCheckRequests() (types.AdminData, error)

func GetLibraryData

func GetLibraryData() (types.LibraryData, error)

func GetUser

func GetUser(UserName string) (types.User, error)

func RegisterUser

func RegisterUser(user types.UserRegister) (bool, error)

func RequestCheckIn

func RequestCheckIn(user types.CookieUser, bookId int) (string, error)

func RequestCheckOut

func RequestCheckOut(user types.CookieUser, bookId int) (string, error)

func UpdateBooks

func UpdateBooks(book types.Book) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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