Documentation ¶
Index ¶
- func ClearBalance(pkHash []byte) error
- func ClearHasPic(pkHash []byte) error
- func ClearReputation(selfPkHash []byte, pkHash []byte) error
- func DeleteItem(name string) error
- func GetAndSetUnreadNotificationCount(userId uint) (uint, error)
- func GetBalance(pkHash []byte) (int64, error)
- func GetItem(name string, value interface{}) error
- func GetLastTopicList(cookieId string) (string, error)
- func GetUnreadNotificationCount(userId uint) (uint, error)
- func GetUserAddress(userId uint) (wallet.Address, error)
- func GetUserPkHash(userId uint) ([]byte, error)
- func GetUserSettings(userId uint) (*db.UserSettings, error)
- func IsMissError(err error) bool
- func SetBalance(pkHash []byte, balance int64) error
- func SetItem(name string, value interface{}) error
- func SetItemWithExpiration(name string, value interface{}, expireSeconds int32) error
- func SetLastTopicList(cookieId string, topicList string) error
- func SetProfilePic(pkHash []byte, profilePic ProfilePic) error
- func SetReputation(selfPkHash []byte, pkHash []byte, reputation *Reputation) error
- func SetUnreadNotificationCount(userId uint, count uint) error
- func SetUserSettings(settings *db.UserSettings) error
- type ProfilePic
- type Reputation
- type UnreadNotifications
- type UserAddress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearBalance ¶
func ClearHasPic ¶
func ClearReputation ¶
func DeleteItem ¶
func GetBalance ¶
func GetLastTopicList ¶
func GetUserPkHash ¶
func GetUserSettings ¶
func GetUserSettings(userId uint) (*db.UserSettings, error)
func IsMissError ¶
func SetBalance ¶
func SetItemWithExpiration ¶
func SetLastTopicList ¶
func SetProfilePic ¶
func SetProfilePic(pkHash []byte, profilePic ProfilePic) error
func SetReputation ¶
func SetReputation(selfPkHash []byte, pkHash []byte, reputation *Reputation) error
func SetUserSettings ¶
func SetUserSettings(settings *db.UserSettings) error
Types ¶
type ProfilePic ¶
func GetProfilePic ¶
func GetProfilePic(pkHash []byte) (ProfilePic, error)
type Reputation ¶
func GetReputation ¶
func GetReputation(selfPkHash []byte, pkHash []byte) (*Reputation, error)
type UnreadNotifications ¶
type UnreadNotifications struct {
Count uint
}
type UserAddress ¶
type UserAddress struct {
PkHash []byte
}
Click to show internal directories.
Click to hide internal directories.