Documentation ¶
Index ¶
- type Client
- func (c *Client) GetCategoryMembers(ctx context.Context, title string, limit int, lastTitle string, isPage bool) ([]entity.CategoryMember, string, int, error)
- func (c *Client) GetImage(ctx context.Context, path string) ([]byte, int, error)
- func (c *Client) GetImageInfo(ctx context.Context, name string) (string, int, error)
- func (c *Client) GetPageByID(ctx context.Context, id int64) (*entity.Page, int, error)
- func (c *Client) GetPageCategories(ctx context.Context, id int64, limit int, lastTitle string) ([]entity.PageCategory, string, int, error)
- func (c *Client) GetPageImageByID(ctx context.Context, id int64) (*entity.PageImage, int, error)
- func (c *Client) GetPages(ctx context.Context, limit int, lastName string) ([]entity.Page, string, int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client contains functions for wikia api client.
func (*Client) GetCategoryMembers ¶
func (c *Client) GetCategoryMembers(ctx context.Context, title string, limit int, lastTitle string, isPage bool) ([]entity.CategoryMember, string, int, error)
GetCategoryMembers to get category members.
func (*Client) GetImageInfo ¶
GetImageInfo to get image info.
func (*Client) GetPageByID ¶
GetPageByID to get page by id.
func (*Client) GetPageCategories ¶
func (c *Client) GetPageCategories(ctx context.Context, id int64, limit int, lastTitle string) ([]entity.PageCategory, string, int, error)
GetPageCategories to get page categories.
func (*Client) GetPageImageByID ¶
GetPageImageByID to get page image by id.
Click to show internal directories.
Click to hide internal directories.