Documentation ¶
Index ¶
- type Client
- func (c *Client) GenerateChannelURL(id string) string
- func (c *Client) GenerateVideoURL(id string) string
- func (c *Client) GetIDFromURL(ctx context.Context, url string) (string, error)
- func (c *Client) GetSourceURLByID(ctx context.Context, id string) (string, error)
- func (c *Client) GetVideo(ctx context.Context, id string) (*entity.Video, error)
- func (c *Client) GetVideos(ctx context.Context, query string, limit int64) ([]entity.Video, error)
- func (c *Client) IsURLValid(url_ string) bool
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 youtube client.
func (*Client) GenerateChannelURL ¶
GenerateChannelURL to generate youtube channel url.
func (*Client) GenerateVideoURL ¶
GenerateVideoURL to generate youtube video url.
func (*Client) GetIDFromURL ¶
GetIDFromURL to get video id from url.
func (*Client) GetSourceURLByID ¶
GetSourceURLByID to get video source url.
func (*Client) IsURLValid ¶
IsURLValid to check if youtube url valid.
Click to show internal directories.
Click to hide internal directories.