Versions in this module Expand all Collapse all v1 v1.1.0 Sep 23, 2018 Changes in this version + type AuthUser struct + AccessToken string + Password string + User *User + type ClaimPostResult struct + Code int + ErrorMessage string + ID string + Post *Post + type Client struct + UserAgent string + func NewClient() *Client + func NewDevClient() *Client + func NewTorClient(port int) *Client + func (c *Client) ClaimPosts(sp *[]OwnedPostParams) (*[]ClaimPostResult, error) + func (c *Client) CreateCollection(sp *CollectionParams) (*Collection, error) + func (c *Client) CreatePost(sp *PostParams) (*Post, error) + func (c *Client) DeletePost(sp *PostParams) error + func (c *Client) GetCollection(alias string) (*Collection, error) + func (c *Client) GetCollectionPosts(alias string) (*[]Post, error) + func (c *Client) GetPost(id string) (*Post, error) + func (c *Client) LogIn(username, pass string) (*AuthUser, error) + func (c *Client) SetToken(token string) + func (c *Client) UpdatePost(sp *PostParams) (*Post, error) + type Collection struct + Alias string + Description string + Domain string + Email string + Posts *[]Post + Private bool + StyleSheet string + Title string + TotalPosts int + Views int64 + type CollectionParams struct + Alias string + Title string + type OwnedPostParams struct + ID string + Token string + type Post struct + Collection *Collection + Content string + Created time.Time + Font string + ID string + Images []string + Language *string + Listed bool + OwnerName string + RTL *bool + Slug string + Tags []string + Title string + Token string + Views int64 + type PostParams struct + Collection string + Content string + Crosspost []map[string]string + Font string + IsRTL *bool + Language *string + Title string + type User struct + Created time.Time + Email string + Subscription *UserSubscription + Username string + type UserSubscription struct + Active bool + AutoRenew bool + Begin time.Time + Delinquent bool + End time.Time + Name string