Documentation ¶
Index ¶
- Constants
- Variables
- func Request(client http.Client, req *http.Request, cont []byte) ([]byte, error)
- type Client
- type ImageParams
- type PageInfo
- type PageInfoRequest
- type PageInfoResponse
- type PlaybackAccessToken
- type PlaybackAccessTokenRequest
- type PlaybackAccessTokenRequestParams
- type PlaybackAccessTokenResponse
- type Type
- type Video
- type VideoDownload
- type VideoDownloadRequest
- type VideoDownloadResponse
- type VideoEdge
- type VideoEdgeRequest
- type VideoEdgeResponse
- type VideoRequest
- type VideoRequestParams
- type VideoResponse
Constants ¶
View Source
const ( GqlHost = "gql.twitch.tv" GqlPath = "gql" GqlClientId = "kimne78kx3ncx6brgo4mv6wki5h1ko" )
Variables ¶
View Source
var ( GqlUrl = url.URL{ Scheme: "https", Host: GqlHost, Path: GqlPath, } )
Functions ¶
Types ¶
type ImageParams ¶
type PageInfo ¶
type PageInfo struct { Request PageInfoRequest Response PageInfoResponse }
func (*PageInfo) RequestParser ¶
func (*PageInfo) ResponseParser ¶
type PageInfoRequest ¶
type PageInfoRequest struct {
// contains filtered or unexported fields
}
type PageInfoResponse ¶
type PageInfoResponse struct {
// contains filtered or unexported fields
}
type PlaybackAccessToken ¶
type PlaybackAccessToken struct { Request PlaybackAccessTokenRequest Response PlaybackAccessTokenResponse }
func (*PlaybackAccessToken) RequestParser ¶
func (pat *PlaybackAccessToken) RequestParser() (string, error)
func (*PlaybackAccessToken) ResponseParser ¶
func (pat *PlaybackAccessToken) ResponseParser(res []byte)
type PlaybackAccessTokenRequest ¶
type PlaybackAccessTokenRequest struct { Params PlaybackAccessTokenRequestParams Signature bool Value bool }
type Video ¶
type Video struct { Request VideoRequest Response VideoResponse }
func (*Video) RequestParser ¶
func (*Video) ResponseParser ¶
type VideoDownload ¶
type VideoDownload struct { Request VideoDownloadRequest Response VideoDownloadResponse }
func (*VideoDownload) RequestParser ¶
func (vd *VideoDownload) RequestParser() (string, error)
func (*VideoDownload) ResponseParser ¶
func (vd *VideoDownload) ResponseParser(res []byte)
type VideoDownloadRequest ¶
type VideoDownloadResponse ¶
type VideoEdge ¶
type VideoEdge struct { Request VideoEdgeRequest Response VideoEdgeResponse }
func (*VideoEdge) RequestParser ¶
func (*VideoEdge) ResponseParser ¶
type VideoEdgeRequest ¶
type VideoEdgeRequest struct {
// contains filtered or unexported fields
}
type VideoEdgeResponse ¶
type VideoEdgeResponse struct {
// contains filtered or unexported fields
}
type VideoRequest ¶
type VideoRequest struct { Params VideoRequestParams AnimatedPreviewUrl bool BroadcastType bool CreatedAt bool Creator bool DeletedAt bool Description bool Download *VideoDownload Duration bool Game bool Id bool SoftDeleted bool Language bool OffsetSeconds bool PlaybackAccessToken *PlaybackAccessToken PublishedAt bool RecordedAt bool Scope bool PreviewsUrl bool Status bool Tags bool PreviewThumbnailUrl ImageParams ThumbnailUrls ImageParams Title bool UpdatedAt bool ViewCount bool ViewableAt bool }
type VideoRequestParams ¶
type VideoResponse ¶
type VideoResponse struct { AnimatedPreviewUrl string BroadcastType string CreatedAt time.Time DeletedAt time.Time Description string Download *VideoDownload Duration time.Duration Id int SoftDeleted bool Language string OffsetSeconds int PlaybackAccessToken *PlaybackAccessToken PublishedAt time.Time RecordedAt time.Time Scope string PreviewsUrl string Status string Tags []string PreviewThumbnailURL string ThumbnailUrls []string Title string UpdatedAt time.Time ViewCount int ViewableAt time.Time }
Click to show internal directories.
Click to hide internal directories.