cast

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package cast implements the Cast domain. A domain for interacting with Cast, Presentation API, and Remote Playback API functionalities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(conn *rpcc.Conn) *domainClient

NewClient returns a client for the Cast domain with the connection set to conn.

Types

type EnableArgs

type EnableArgs struct {
	PresentationURL *string `json:"presentationUrl,omitempty"` // No description.
}

EnableArgs represents the arguments for Enable in the Cast domain.

func NewEnableArgs

func NewEnableArgs() *EnableArgs

NewEnableArgs initializes EnableArgs with the required arguments.

func (*EnableArgs) SetPresentationURL

func (a *EnableArgs) SetPresentationURL(presentationURL string) *EnableArgs

SetPresentationURL sets the PresentationURL optional argument.

type IssueUpdatedClient

type IssueUpdatedClient interface {
	// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
	// triggered, context canceled or connection closed.
	Recv() (*IssueUpdatedReply, error)
	rpcc.Stream
}

IssueUpdatedClient is a client for IssueUpdated events. This is fired whenever the outstanding issue/error message changes. |issueMessage| is empty if there is no issue.

type IssueUpdatedReply

type IssueUpdatedReply struct {
	IssueMessage string `json:"issueMessage"` // No description.
}

IssueUpdatedReply is the reply for IssueUpdated events.

type SetSinkToUseArgs

type SetSinkToUseArgs struct {
	SinkName string `json:"sinkName"` // No description.
}

SetSinkToUseArgs represents the arguments for SetSinkToUse in the Cast domain.

func NewSetSinkToUseArgs

func NewSetSinkToUseArgs(sinkName string) *SetSinkToUseArgs

NewSetSinkToUseArgs initializes SetSinkToUseArgs with the required arguments.

type SinksUpdatedClient

type SinksUpdatedClient interface {
	// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
	// triggered, context canceled or connection closed.
	Recv() (*SinksUpdatedReply, error)
	rpcc.Stream
}

SinksUpdatedClient is a client for SinksUpdated events. This is fired whenever the list of available sinks changes. A sink is a device or a software surface that you can cast to.

type SinksUpdatedReply

type SinksUpdatedReply struct {
	SinkNames []string `json:"sinkNames"` // No description.
}

SinksUpdatedReply is the reply for SinksUpdated events.

type StartTabMirroringArgs

type StartTabMirroringArgs struct {
	SinkName string `json:"sinkName"` // No description.
}

StartTabMirroringArgs represents the arguments for StartTabMirroring in the Cast domain.

func NewStartTabMirroringArgs

func NewStartTabMirroringArgs(sinkName string) *StartTabMirroringArgs

NewStartTabMirroringArgs initializes StartTabMirroringArgs with the required arguments.

type StopCastingArgs

type StopCastingArgs struct {
	SinkName string `json:"sinkName"` // No description.
}

StopCastingArgs represents the arguments for StopCasting in the Cast domain.

func NewStopCastingArgs

func NewStopCastingArgs(sinkName string) *StopCastingArgs

NewStopCastingArgs initializes StopCastingArgs with the required arguments.

Jump to

Keyboard shortcuts

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