Documentation ¶
Index ¶
- func AddCicerone(uid, tel int, iban, fcode string) error
- func Close()
- func CreateEvent(e types.Evento) error
- func CreateUser(u types.User) (e error)
- func DeleteEventById(id int) (e error)
- func DeleteEveryEvent() error
- func DeleteSelectedUser(email, password string) (e error)
- func DeleteUserById(uid int) (e error)
- func GetEventById(id int) (Evento types.Evento, e error)
- func GetEvents() (E []types.MiniEvento, e error)
- func GetUserEmail(uid int) (email string)
- func GetUserID(email string) (userID int)
- func GetUserInfo(email string) (u types.User, e error)
- func InvertUserId(uid int) (e error)
- func IsCicerone(uid int) (false bool)
- func SearchEvent(query string) (E []types.MiniEvento, e error)
- func ValidUser(email, password string) bool
- type Database
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCicerone ¶
func CreateEvent ¶
func CreateUser ¶
CreateUser will create a new user. It takes as input a generic user type and optionally the UserId
func DeleteEventById ¶
func DeleteEveryEvent ¶
func DeleteEveryEvent() error
func DeleteSelectedUser ¶
func DeleteUserById ¶
func GetEvents ¶
func GetEvents() (E []types.MiniEvento, e error)
func GetUserEmail ¶
func InvertUserId ¶
func IsCicerone ¶
func SearchEvent ¶
func SearchEvent(query string) (E []types.MiniEvento, e error)
TODO: improve search query in order to filter the results
Types ¶
Click to show internal directories.
Click to hide internal directories.