Documentation ¶
Overview ¶
Package lemmy provides a client interface to the Lemmy HTTP API version 3.
Index ¶
- Constants
- Variables
- func ParseCommentPath(s string) []int
- type Client
- func (c *Client) Authenticated() bool
- func (c *Client) Comments(post int, mode ListMode) ([]Comment, error)
- func (c *Client) Communities(mode ListMode) ([]Community, error)
- func (c *Client) Login(name, password string) error
- func (c *Client) LookupComment(id int) (Comment, error)
- func (c *Client) LookupCommunity(name string) (Community, Counts, error)
- func (c *Client) LookupPost(id int) (Post, error)
- func (c *Client) Posts(community string, mode ListMode) ([]Post, error)
- func (c *Client) Reply(post int, parent int, msg string) error
- type Comment
- type Community
- type Counts
- type ListMode
- type Person
- type Post
Constants ¶
View Source
const ( ListAll ListMode = "All" ListLocal = "Local" ListSubscribed = "Subscribed" )
Variables ¶
Functions ¶
Types ¶
type Client ¶
type Client struct { *http.Client Address string // If true, HTTP request summaries are printed to standard error. Debug bool // contains filtered or unexported fields }
func (*Client) LookupCommunity ¶
type Comment ¶
type Community ¶
type Counts ¶
type Person ¶
Click to show internal directories.
Click to hide internal directories.