cast

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 3 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 Sink added in v0.23.3

type Sink struct {
	Name    string  `json:"name"`              // No description.
	ID      string  `json:"id"`                // No description.
	Session *string `json:"session,omitempty"` // Text describing the current session. Present only if there is an active session on the sink.
}

Sink

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 {
	Sinks []Sink `json:"sinks"` // No description.
}

SinksUpdatedReply is the reply for SinksUpdated events.

type StartDesktopMirroringArgs added in v0.33.0

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

StartDesktopMirroringArgs represents the arguments for StartDesktopMirroring in the Cast domain.

func NewStartDesktopMirroringArgs added in v0.33.0

func NewStartDesktopMirroringArgs(sinkName string) *StartDesktopMirroringArgs

NewStartDesktopMirroringArgs initializes StartDesktopMirroringArgs with the required arguments.

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