storage

package
v0.0.0-...-d1a84fa Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFriend

func AddFriend(email, key string) error

Friends

func AddFriendRequest

func AddFriendRequest(fromme bool, email, key string) error

Friend Requests

func AddMsg

func AddMsg(mail *pb.Mail) error

func AddProfile

func AddProfile(profile string)

func GetCfg

func GetCfg(key string) (string, bool)

GetCfg gets a value from the table, returning false when it doesn't exist

func GetCurrentProfile

func GetCurrentProfile() (string, bool)

func GetFriend

func GetFriend(email string) (*pb.Friend, error)

func GetFriendRequest

func GetFriendRequest(email string) (*pb.FriendRequest, error)

func GetFriendRequests

func GetFriendRequests() ([]*pb.FriendRequest, error)

func GetFriends

func GetFriends() ([]string, error)

func GetMessages

func GetMessages(since int64) ([]*pb.Mail, error)

GetMessages gets all messages after a unix timestamp

func GetProfiles

func GetProfiles() []string

func LoadProfile

func LoadProfile(profile string)

func RemoveFriendRequest

func RemoveFriendRequest(email string) error

func SetCfg

func SetCfg(key, val string)

SetCfg sets a value in the config table, creating a row if it does not exist

Types

This section is empty.

Jump to

Keyboard shortcuts

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