gql

package
v0.0.0-...-d0bd67e Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package gql is used for twitch's GraphQL

Index

Constants

View Source
const AppName string = "goPurple/gql"

AppName is the name of the application

FullVersion contains the full name and version of this package in a printable string

View Source
const VersionBuild string = "s"

VersionBuild is the type of this release. s(table), b(eta), d(evelopment), n(ightly)

View Source
const VersionMajor string = "0"

VersionMajor 0 means in development, >1 ensures compatibility with each minor version, but breakes with new major version

View Source
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

type Client struct {
	ClientID string
	OAuth    string
}

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

Jump to

Keyboard shortcuts

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