Documentation ¶
Index ¶
- Constants
- Variables
- func Follow(ctx context.Context, uid int64, tuid int64) error
- func FollowCount(ctx context.Context, uid int64) (int64, error)
- func FollowList(ctx context.Context, uid int64) ([]int64, error)
- func FollowerCount(ctx context.Context, uid int64) (int64, error)
- func FollowerList(ctx context.Context, uid int64) ([]int64, error)
- func FriendList(ctx context.Context, uid int64) ([]int64, error)
- func Init()
- func IsFollow(ctx context.Context, uid int64, tuid int64) (bool, error)
- func UnFollow(ctx context.Context, uid int64, tuid int64) error
Constants ¶
View Source
const ( FollowKey = "follow" FollowerKey = "follower" )
Variables ¶
View Source
var RedisClient *redis.Client
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.