Versions in this module Expand all Collapse all v0 v0.2.0 Aug 24, 2026 Changes in this version type Client + func (c *Client) SearchCommunities(ctx context.Context, query string, limit int) (*CommunityList, error) + type Community struct + ActorID string + Description string + Icon string + NSFW bool + Name string + Subscribers int + Title string + type CommunityList struct + Communities []Community v0.1.0 Jul 10, 2026 Changes in this version + type Client struct + HTTPClient *http.Client + Instance string + UserAgent string + func New(instance string, opts ...Option) *Client + func (c *Client) Login(ctx context.Context, usernameOrEmail, password string) error + func (c *Client) Posts(ctx context.Context, opts PostsOptions) (*PostList, error) + type Option func(*Client) + func WithHTTPClient(h *http.Client) Option + func WithUserAgent(ua string) Option + type Post struct + Body string + Comments int + Community string + Creator string + ID int + NSFW bool + Permalink string + Published time.Time + Score int + ThumbnailURL string + Title string + URL string + type PostList struct + Posts []Post + type PostsOptions struct + Community string + Limit int + Page int + Sort string + Type string