Documentation
¶
Index ¶
- type PersistRepository
- func (r *PersistRepository) AddFollow(ctx context.Context, userId, targetUserId int64) error
- func (r *PersistRepository) CountFollowing(ctx context.Context, userId int64, followType int32) (int64, error)
- func (r *PersistRepository) ListFollowing(ctx context.Context, userId int64, followType int32, limit, offset int) ([]int64, error)
- func (r *PersistRepository) RemoveFollow(ctx context.Context, userId, targetUserId int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PersistRepository ¶
type PersistRepository struct { }
func New ¶
func New() *PersistRepository
func (*PersistRepository) AddFollow ¶
func (r *PersistRepository) AddFollow(ctx context.Context, userId, targetUserId int64) error
func (*PersistRepository) CountFollowing ¶ added in v0.1.4
func (*PersistRepository) ListFollowing ¶
func (*PersistRepository) RemoveFollow ¶
func (r *PersistRepository) RemoveFollow(ctx context.Context, userId, targetUserId int64) error
Click to show internal directories.
Click to hide internal directories.