Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrStatusNotOK = Error("got not-OK status code") ErrNilQueryPointer = Error("got nil query pointer") ErrNilNodesArray = Error("got nil nodes array") ErrEmptyNodesArray = Error("got empty nodes array") ErrNilNodePointer = Error("got nil node pointer") ErrNilAttrArray = Error("got nil attr array") ErrEmptyAttrArray = Error("got empty attr array") ErrSrcAttrNotFound = Error("attr 'src' not found") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { HTTPClient *http.Client BaseURL string TempDir string UserAgent string Debug bool }
func (*Client) GetVideo ¶
GetVideo gets video in WebM format Be careful: it uses the same context for both GetVideoURL and GetVideo
func (*Client) GetVideoURL ¶
GetVideoURL returns URL of video in WebM format
type ClientOption ¶
type ClientOption func(*Client)
func HTTPClient ¶
func HTTPClient(cl *http.Client) ClientOption
HTTPClient sets HTTPClient in Client
Click to show internal directories.
Click to hide internal directories.