Documentation
¶
Index ¶
- func AcceptAdmins(accept types.AcceptAdmins) (string, error)
- func AcceptCheckIn(checkout types.CheckIn) (string, error)
- func AcceptCheckOut(checkout types.CheckOut) (string, error)
- func AddBooks(book types.Book) (bool, error)
- func BooksList() ([]types.Book, error)
- func ClientPerBookTransactions(user types.CookieUser, bookId int) ([]types.ClientBookViewTransactionsInterpretable, error)
- func ClientTransactions(user types.CookieUser) ([]types.ClientBookViewTransactionsInterpretable, error)
- func Connection() (*sql.DB, error)
- func DeleteBooks(bookID int) (bool, error)
- func FlipAdmin(user types.CookieUser) error
- func GetBook(title string) (types.Book, error)
- func GetCheckRequests() (types.AdminData, error)
- func GetLibraryData() (types.LibraryData, error)
- func GetUser(UserName string) (types.User, error)
- func RegisterUser(user types.UserRegister) (bool, error)
- func RequestCheckIn(user types.CookieUser, bookId int) (string, error)
- func RequestCheckOut(user types.CookieUser, bookId int) (string, error)
- func UpdateBooks(book types.Book) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptAdmins ¶
func AcceptAdmins(accept types.AcceptAdmins) (string, error)
func ClientPerBookTransactions ¶
func ClientPerBookTransactions(user types.CookieUser, bookId int) ([]types.ClientBookViewTransactionsInterpretable, error)
func ClientTransactions ¶
func ClientTransactions(user types.CookieUser) ([]types.ClientBookViewTransactionsInterpretable, error)
func Connection ¶
func DeleteBooks ¶
func FlipAdmin ¶
func FlipAdmin(user types.CookieUser) error
func GetCheckRequests ¶
func GetLibraryData ¶
func GetLibraryData() (types.LibraryData, 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)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.