db

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearChat added in v1.0.6

func ClearChat(user *models.User, hashname string) error

func ClearGroupChat added in v1.0.7

func ClearGroupChat(user *models.User, hashname string) error

func DeleteClient added in v1.0.3

func DeleteClient(user *models.User, hashname string) error

func DeleteEmail added in v1.0.5

func DeleteEmail(user *models.User, hash string) error

func DeleteFile

func DeleteFile(user *models.User, filehash string) error

func DeleteFriend added in v1.0.3

func DeleteFriend(user *models.User, hashname string) error

func DeleteGroupChat added in v1.0.7

func DeleteGroupChat(user *models.User, hashname string) error

func DeleteUser

func DeleteUser(user *models.User) error

func GetAllClients

func GetAllClients(user *models.User) []models.Client

func GetAllEmails added in v1.0.5

func GetAllEmails(user *models.User) []models.Email

func GetAllFiles

func GetAllFiles(user *models.User) []models.File

func GetAllFriends added in v1.0.3

func GetAllFriends(user *models.User) []string

func GetChat

func GetChat(user *models.User, hashname string) *models.Chat

func GetClient

func GetClient(user *models.User, hashname string) *models.Client

func GetClientHashname added in v1.0.5

func GetClientHashname(id int) string

func GetClientId added in v1.0.5

func GetClientId(iduser int, hashname string) int

func GetEmail added in v1.0.5

func GetEmail(user *models.User, hash string) *models.Email

func GetFile

func GetFile(user *models.User, filehash string) *models.File

func GetFriendId added in v1.0.5

func GetFriendId(iduser int, hashname string) int

func GetGroupChat added in v1.0.7

func GetGroupChat(user *models.User, hashname string) *models.Chat

func GetGroupChatFounders added in v1.0.7

func GetGroupChatFounders(user *models.User) []string

func GetLastMessages

func GetLastMessages(user *models.User) []models.LastMessage

func GetState added in v1.0.3

func GetState(user *models.User) *models.State

func GetStateId added in v1.0.5

func GetStateId(iduser int) int

func GetTempEmails added in v1.0.5

func GetTempEmails(user *models.User, hashname string) []models.EmailType

func GetUser

func GetUser(username, password string) *models.User

func GetUserId

func GetUserId(username string) int

func InClients

func InClients(user *models.User, hashname string) bool

func InEmails added in v1.0.5

func InEmails(user *models.User, hash string) bool

func SetChat

func SetChat(user *models.User, chat *models.Chat) error

func SetClient

func SetClient(user *models.User, client *models.Client) error

func SetEmail added in v1.0.5

func SetEmail(user *models.User, option models.EmailSaveOption, email *models.Email) error

func SetFile

func SetFile(user *models.User, file *models.File) error

func SetFriend added in v1.0.3

func SetFriend(user *models.User, hashname string) error

func SetGroupChat added in v1.0.7

func SetGroupChat(user *models.User, chat *models.Chat) error

func SetState added in v1.0.3

func SetState(user *models.User, state *models.State) error

func SetUser

func SetUser(user *models.User) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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