Documentation ¶
Index ¶
- Constants
- func BFAdd(ctx context.Context, key string, value interface{}) error
- func BFExists(ctx context.Context, key string, value interface{}) (bool, error)
- func BFInit(ctx context.Context, key string) error
- func Exists(ctx context.Context, format string, uid int64) (bool, error)
- func FavouriteKeyAdd(ctx context.Context, uid int64, id ...interface{}) error
- func FavouriteKeyContains(ctx context.Context, uid int64, id int64) (bool, error)
- func FavouriteKeyExists(ctx context.Context, uid int64) (bool, error)
- func FavouriteKeyRem(ctx context.Context, uid int64, id ...interface{}) error
- func FollowKeyAdd(ctx context.Context, uid int64, id ...interface{}) error
- func FollowKeyContains(ctx context.Context, uid int64, id int64) (bool, error)
- func FollowKeyExists(ctx context.Context, uid int64) (bool, error)
- func FollowKeyRem(ctx context.Context, uid int64, id ...interface{}) error
- func Init()
- func LoadUserFromDBToRedis(ctx context.Context) error
- func LoadVideoFromDBToRedis(ctx context.Context) error
- func SetAdd(ctx context.Context, format string, uid int64, id ...interface{}) error
- func SetContains(ctx context.Context, format string, uid int64, id int64) (bool, error)
- func SetRem(ctx context.Context, format string, uid int64, id ...interface{}) error
- func UserIdAddBF(ctx context.Context, uid int64) error
- func UserIdExistBF(ctx context.Context, uid int64) (bool, error)
- func UserIdInitBF(ctx context.Context) error
- func UserInfoDel(ctx context.Context, uid int64) error
- func UserInfoExists(ctx context.Context, uid int64) (bool, error)
- func UserInfoGet(ctx context.Context, uid int64) (*model.User, error)
- func UserInfoSet(ctx context.Context, user *model.User) error
- func UserNameAddBF(ctx context.Context, uname string) error
- func UserNameExistBF(ctx context.Context, uname string) (bool, error)
- func UserNameInitBF(ctx context.Context) error
- func VideoIdAddBF(ctx context.Context, vid int64) error
- func VideoIdExistBF(ctx context.Context, vid int64) (bool, error)
- func VideoIdInitBF(ctx context.Context) error
Constants ¶
View Source
const (
InvalidUserId int64 = -1
)
Variables ¶
This section is empty.
Functions ¶
func FavouriteKeyAdd ¶
func FavouriteKeyContains ¶
func FavouriteKeyExists ¶ added in v0.0.5
func FavouriteKeyRem ¶
func FollowKeyContains ¶
func FollowKeyExists ¶ added in v0.0.5
func LoadUserFromDBToRedis ¶ added in v0.0.4
LoadUserFromDBToRedis only called by api service
func LoadVideoFromDBToRedis ¶ added in v0.0.5
LoadVideoFromDBToRedis only called by api service
func SetContains ¶ added in v0.0.4
func UserIdExistBF ¶ added in v0.0.5
func UserIdInitBF ¶ added in v0.0.5
func UserInfoExists ¶ added in v0.0.5
func UserInfoGet ¶ added in v0.0.5
func UserNameExistBF ¶ added in v0.0.5
func UserNameInitBF ¶ added in v0.0.5
func VideoIdExistBF ¶ added in v0.0.5
func VideoIdInitBF ¶ added in v0.0.5
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.