Documentation
¶
Overview ¶
Package client provides client for social networks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Username(ctx context.Context) string
GetUserByName(ctx context.Context, username string) (models.User, error)
Followers(ctx context.Context) ([]models.User, error)
UserFollowers(ctx context.Context, user models.User) ([]models.User, error)
Followings(ctx context.Context) ([]models.User, error)
UserFollowings(ctx context.Context, user models.User) ([]models.User, error)
Follow(ctx context.Context, user models.User) error
Unfollow(ctx context.Context, user models.User) error
Block(ctx context.Context, user models.User) error
Unblock(ctx context.Context, user models.User) error
IsUseless(ctx context.Context, user models.User, threshold int) (bool, error)
UploadMedia(ctx context.Context, file io.Reader, mt media.Type) error
Logout(ctx context.Context) error
}
Client is a common social client interface.
Click to show internal directories.
Click to hide internal directories.