db

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteChat

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

func DeleteClient added in v1.0.3

func DeleteClient(user *models.User, hashname 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 DeleteUser

func DeleteUser(user *models.User) error

func GetAllClients

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

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, comp string) *models.Chat

func GetClient

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

func GetFile

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

func GetLastChat

func GetLastChat(comp string, user *models.User) *models.Chat

func GetLastMessages

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

func GetState added in v1.0.3

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

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 InUsers

func InUsers(username 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 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 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