googlecast

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoogleCastClient

func NewGoogleCastClient(conn gopi.RPCClientConn) gopi.RPCClient

Types

type Client

type Client struct {
	pb.GoogleCastClient
	// contains filtered or unexported fields
}

func (*Client) Conn

func (this *Client) Conn() gopi.RPCClientConn

func (*Client) Devices

func (this *Client) Devices() ([]rpc.GoogleCastDevice, error)

func (*Client) NewContext

func (this *Client) NewContext(timeout time.Duration) context.Context

func (*Client) Ping

func (this *Client) Ping() error

func (*Client) StreamEvents

func (this *Client) StreamEvents(string, chan<- rpc.GoogleCastEvent) error

func (*Client) String

func (this *Client) String() string

type Service

type Service struct {
	Server     gopi.RPCServer
	GoogleCast rpc.GoogleCast
}

func (Service) Open

func (config Service) Open(log gopi.Logger) (gopi.Driver, error)

Open the server

Jump to

Keyboard shortcuts

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