Documentation
¶
Index ¶
- func AddDataToDB(roomName string, username string, data string) error
- func AddTable(db *sql.DB, username string) int
- func AddUserData(userID string, loggedIn string, username string)
- func AuthenticateLogin(db *sql.DB, username string, password string) int
- func AuthenticateSignUp(db *sql.DB, username string, password string) int
- func CheckActiveSession(ID string) ([]util.UserData, error)
- func CheckAdmin(user []util.UserData, roomName string) bool
- func CreateRoom(room util.RoomData) error
- func GetEmails(username string, inbox string) *sql.Rows
- func GetRoomData(roomName string) (*sql.Rows, error)
- func GetRoomsUser(username string) *sql.Rows
- func GetUserData(username string) *sql.Rows
- func GetUserRoomData(roomName string) (*sql.Rows, error)
- func RemoveUserData(userID string, loggedIn string, username string)
- func UpdateDB(data [][]string, username string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUserData ¶
func AuthenticateLogin ¶
AuthenticateLogin returns 0 or 1 based on existance of account in the DB(1) or not(0)
func CreateRoom ¶
func GetEmails ¶
GetEmails gets all the emails related to the username. inbox arg : 0 -> SentBox, 1-> Inbox
func GetRoomData ¶
GetRoomData gives all the emails in the room for the given roomName
func GetRoomsUser ¶
GetRoomsUser gives the rooms associated with the user
func GetUserData ¶
GetUserData gets the users session Data from the DB
func GetUserRoomData ¶
GetUserRoomData gives the roomData associated with the roomName
func RemoveUserData ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.