Documentation
¶
Index ¶
- type Client
- func (c *Client) DeletePost(postID string) error
- func (c *Client) FetchLatestPostWithHighestLikes(subreddit string) (*reddit.Post, error)
- func (c *Client) ListHotPosts(subreddit string) ([]*reddit.Post, error)
- func (c *Client) ListSubreddit(subreddit string) ([]*reddit.Post, error)
- func (c *Client) MoveDown(postID string) error
- func (c *Client) MoveUp(postID string) error
- func (c *Client) SubmitPost(subreddit, title, body string) (*reddit.Post, error)
- func (c *Client) UpdatePost(postID, newTitle, newText string) (*reddit.Post, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client struct to hold the reddit client
func (*Client) DeletePost ¶
DeletePost deletes a post on subreddit
func (*Client) FetchLatestPostWithHighestLikes ¶
FetchLatestPostWithHighestLikes fetch latest post in subreddit sorted by highest likes
func (*Client) ListHotPosts ¶
ListHotPosts lists hot posts on subreddit
func (*Client) ListSubreddit ¶
ListSubreddit lists the subreddit by name
func (*Client) SubmitPost ¶
SubmitPost submit a post to subreddit
Click to show internal directories.
Click to hide internal directories.