Documentation ¶
Index ¶
- Constants
- Variables
- func FollowAction(ctx context.Context, uid, tid int64) error
- func FollowCount(ctx context.Context, uid int64) (int64, error)
- func FollowListAction(ctx context.Context, uid int64) (*[]int64, error)
- func FollowListKey(uid int64) string
- func FollowerCount(ctx context.Context, uid int64) (int64, error)
- func FollowerListAction(ctx context.Context, uid int64) (*[]int64, error)
- func FollowerListKey(uid int64) string
- func FriendListAction(ctx context.Context, uid int64) (*[]int64, error)
- func Init()
- func IsFollow(ctx context.Context, uid, tid int64) (bool, error)
- func Limit(ctx context.Context, rate int, interval time.Duration) error
- func UnFollowAction(ctx context.Context, uid, tid int64) error
- func UpdateFollowList(ctx context.Context, uid int64, followList *[]int64) error
- func UpdateFollowerList(ctx context.Context, uid int64, followerList *[]int64) error
- func UpdateFriendList(ctx context.Context, uid int64, followList, followerList *[]int64) error
Constants ¶
View Source
const (
LimiterKey = "limiter"
)
Variables ¶
View Source
var RedisClient *redis.Client
Functions ¶
func FollowListKey ¶
func FollowerListKey ¶
func UpdateFollowList ¶
func UpdateFollowerList ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.