db

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 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 DeleteFile

func DeleteFile(user *models.User, filehash 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 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 GetUser

func GetUser(pasw []byte) *models.User

func GetUserId

func GetUserId(hashpasw string) int

func InClients

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

func InUsers

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