Documentation
¶
Index ¶
- func Logout(c *Client) error
- type Authorization
- type BlockedUsers
- type Client
- type ErrorResponse
- type Followees
- type Followers
- type LikesPost
- type Post
- func (p *Post) Delete(c *Client, content string) error
- func (p *Post) Edit(c *Client, content string) (*Post, error)
- func (p *Post) Like(c *Client) error
- func (p *Post) Likes(c *Client) (LikesPost, error)
- func (p *Post) Replies(c *Client, offset int, limit int) (Posts, error)
- func (p *Post) Reply(c *Client, content string) (*Post, error)
- func (p *Post) Unlike(c *Client) error
- type Posts
- type SelfUser
- type User
- func (u *User) Block(c *Client) error
- func (u *User) Follow(c *Client) error
- func (u *User) Followees(c *Client) (Followees, error)
- func (u *User) Followers(c *Client) (Followers, error)
- func (u *User) LikedPosts(c *Client, offset int, limit int) (Posts, error)
- func (u *User) Posts(c *Client, offset int, limit int, replies bool) (Posts, error)
- func (u *User) Unblock(c *Client) error
- func (u *User) Unfollow(c *Client) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authorization ¶
type Authorization struct {
Token string `json:"token"`
}
type BlockedUsers ¶
type BlockedUsers struct {
Blocked []string `json:"blocked"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message"`
}
type Post ¶
type Post struct { ID string `json:"id"` ReplyID string `json:"reply"` Author string `json:"author"` Content string `json:"content"` CreatedAt string `json:"created_at"` Attachments []string `json:"attachments"` }
func CreatePost ¶
Create a new post.
type SelfUser ¶
type User ¶
type User struct { ID string `json:"id"` Username string `json:"username"` DisplayName string `json:"display_name"` Description string `json:"description"` CreatedAt string `json:"created_at"` Visible bool `json:"visible"` Avatar string `json:"avatar"` Banner string `json:"banner"` }
func (*User) LikedPosts ¶
Get posts that the user liked.
Click to show internal directories.
Click to hide internal directories.