followrepo

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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 (r *PersistRepository) CountFollowing(ctx context.Context, userId int64, followType int32) (int64, error)

func (*PersistRepository) ListFollowing

func (r *PersistRepository) ListFollowing(ctx context.Context, userId int64, followType int32, limit, offset int) ([]int64, error)

func (*PersistRepository) RemoveFollow

func (r *PersistRepository) RemoveFollow(ctx context.Context, userId, targetUserId int64) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL