client

package
v0.15.6 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: MIT Imports: 11 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 is twitch api client.

func New

func New(cacher cache.Cacher, clientID, clientSecret string, maxAge int) *Client

New to create new twitch api client.

func (*Client) GetFollowerCount

func (c *Client) GetFollowerCount(ctx context.Context, id string) (int, int, error)

GetFollowerCount to get follower count.

func (*Client) GetUser

func (c *Client) GetUser(ctx context.Context, name string) (*entity.User, int, error)

GetUser to get user.

func (*Client) GetVideos

func (c *Client) GetVideos(ctx context.Context, id string) ([]entity.Video, int, error)

GetVideos to get videos.

Jump to

Keyboard shortcuts

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