client

package
v0.20.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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 New

func New() *Client

New to create new wikia api client.

func (*Client) GetCategoryMembers

func (c *Client) GetCategoryMembers(ctx context.Context, title string, limit int, lastTitle string) ([]entity.CategoryMember, string, int, error)

GetCategoryMembers to get category members.

func (*Client) GetImage added in v0.2.0

func (c *Client) GetImage(ctx context.Context, path string) ([]byte, int, error)

GetImage to get image.

func (*Client) GetImageInfo

func (c *Client) GetImageInfo(ctx context.Context, name string) (string, int, error)

GetImageInfo to get image info.

func (*Client) GetPageByID

func (c *Client) GetPageByID(ctx context.Context, id int64) (*entity.Page, int, error)

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

func (c *Client) GetPageImageByID(ctx context.Context, id int64) (*entity.PageImage, int, error)

GetPageImageByID to get page image by id.

func (*Client) GetPages

func (c *Client) GetPages(ctx context.Context, limit int, lastName string) ([]entity.Page, string, int, error)

GetPages to get pages.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL