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)
Logout(ctx context.Context) error
}
Client is a common social client interface.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package actions provides list of actions that could be performed.
|
Package actions provides list of actions that could be performed. |
|
Package instagram provides interactions with Instagram social account.
|
Package instagram provides interactions with Instagram social account. |
Click to show internal directories.
Click to hide internal directories.