Documentation ¶
Index ¶
- func DeleteChat(user *models.User, hashname string) error
- func DeleteClient(user *models.User, hashname string) error
- func DeleteFile(user *models.User, filehash string) error
- func DeleteFriend(user *models.User, hashname string) error
- func DeleteUser(user *models.User) error
- func GetAllClients(user *models.User) []models.Client
- func GetAllFiles(user *models.User) []models.File
- func GetAllFriends(user *models.User) []string
- func GetChat(user *models.User, comp string) *models.Chat
- func GetClient(user *models.User, hashname string) *models.Client
- func GetFile(user *models.User, filehash string) *models.File
- func GetLastChat(comp string, user *models.User) *models.Chat
- func GetLastMessages(user *models.User) []models.LastMessage
- func GetState(user *models.User) *models.User
- func GetUser(username, password string) *models.User
- func GetUserId(username string) int
- func InClients(user *models.User, hashname string) bool
- func InUsers(username string) bool
- func SetChat(user *models.User, chat *models.Chat) error
- func SetClient(user *models.User, client *models.Client) error
- func SetFile(user *models.User, file *models.File) error
- func SetFriend(user *models.User, hashname string) error
- func SetState(user *models.User, state *models.State) error
- func SetUser(user *models.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteUser ¶
func GetAllFriends ¶ added in v1.0.3
func GetLastMessages ¶
func GetLastMessages(user *models.User) []models.LastMessage
Types ¶
This section is empty.
Source Files ¶
- DeleteChat.go
- DeleteClient.go
- DeleteFile.go
- DeleteFriend.go
- DeleteUser.go
- GetAllClients.go
- GetAllFiles.go
- GetAllFriends.go
- GetChat.go
- GetClient.go
- GetFile.go
- GetLastChat.go
- GetLastMessages.go
- GetState.go
- GetUser.go
- GetUserId.go
- InClients.go
- InUsers.go
- SetChat.go
- SetClient.go
- SetFile.go
- SetFriend.go
- SetState.go
- SetUser.go
- decryptMessage.go
- encryptMessage.go
Click to show internal directories.
Click to hide internal directories.