Documentation ¶
Index ¶
- type Client
- func (c *Client) Do(method string, path string, query map[string]string, data []byte) (*http.Response, error)
- func (c *Client) GetCategories(page int, limit int) (*http.Response, error)
- func (c *Client) GetPageAndLimit(r *http.Request) (int, int, error)
- func (c *Client) GetPost(title string) (*http.Response, error)
- func (c *Client) GetPosts(page int, limit int) (*http.Response, error)
- func (c *Client) GetPostsByCategory(name string, page int, limit int) (*http.Response, error)
- func (c *Client) GetPostsByKeyword(keyword string, page int, limit int) (*http.Response, error)
- func (c *Client) GetPostsByTag(name string, page int, limit int) (*http.Response, error)
- func (c *Client) GetTags(page int, limit int) (*http.Response, error)
- func (c *Client) PostComment()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client represents the singular of api client.
func (*Client) Do ¶
func (c *Client) Do(method string, path string, query map[string]string, data []byte) (*http.Response, error)
Do sends an HTTP request and returns an HTTP response.
func (*Client) GetCategories ¶
GetCategories requests categories.
func (*Client) GetPageAndLimit ¶
GetPageAndLimit gets page and limit.
func (*Client) GetPostsByCategory ¶
GetPostsByCategory requests posts by category.
func (*Client) GetPostsByKeyword ¶
GetPostsByKeyword requests posts by keyword.
func (*Client) GetPostsByTag ¶
GetPostsByTag requests posts by tag.
Click to show internal directories.
Click to hide internal directories.