Documentation
¶
Index ¶
- type Client
- func (c *Client) CreatePost(params map[string]interface{}) *Post
- func (c *Client) GetCount() int64
- func (c *Client) GetPost(id string) *Post
- func (c *Client) GetPosts() []*Post
- func (c *Client) GetUserPosts(username string) []*Post
- func (c *Client) UpdatePost(id, cover, content string, created int64) error
- type Post
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client ...
func (*Client) CreatePost ¶
CreatePost creates a new post
func (*Client) GetUserPosts ¶
GetUserPosts gets all the posts from user
type Post ¶
type Post struct { ID string `json:"id"` Title string `json:"title"` Author string `json:"author"` Username string `json:"username"` UserPic string `json:"userpic"` Created int64 `json:"created"` Updated int64 `json:"updated"` Publish int `json:"publish"` Content string `json:"content"` }
Post ...
Click to show internal directories.
Click to hide internal directories.