Documentation
¶
Overview ¶
Package gql is used for twitch's GraphQL
Index ¶
Constants ¶
const AppName string = "goPurple/gql"
AppName is the name of the application
const FullVersion string = AppName + VersionMajor + "." + VersionMinor + VersionBuild
FullVersion contains the full name and version of this package in a printable string
const VersionBuild string = "s"
VersionBuild is the type of this release. s(table), b(eta), d(evelopment), n(ightly)
const VersionMajor string = "0"
VersionMajor 0 means in development, >1 ensures compatibility with each minor version, but breakes with new major version
const VersionMinor string = "2"
VersionMinor introduces changes that require a new version number. If the major version is 0, they are likely to break compatibility
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a client for twitch's gql
func (*Client) CreateVideoBookmarkInput ¶
func (gqlc *Client) CreateVideoBookmarkInput(description, streamID string) (response *CreateVideoBookmarkInputResponse, err error)
CreateVideoBookmarkInput creates a video bookmark (marker)
type CreateVideoBookmarkInputResponse ¶
type CreateVideoBookmarkInputResponse struct { Data struct { CreateVideoBookmark struct { Error interface{} `json:"error"` VideoBookmark struct { PositionSeconds int `json:"positionSeconds"` } `json:"videoBookmark"` } `json:"createVideoBookmark"` } `json:"data"` Extensions struct { DurationMilliseconds int `json:"durationMilliseconds"` } `json:"extensions"` }
CreateVideoBookmarkInputResponse is the response sent by gql for creating video bookmarks