cast

package module
v0.0.0-...-67e7f8a Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2016 License: MIT Imports: 8 Imported by: 0

README

cast

Package cast implements (part of) the Google Cast (v2) protocol

Documentation

Overview

Package cast implements (part of) the Google Cast (v2) protocol

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

func Dial

func Dial(network string, addr string) (*Conn, error)

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) Receive

func (c *Conn) Receive() (*Message, error)

func (*Conn) Send

func (c *Conn) Send(msg *Message) error

type Message

type Message struct {
	Namespace   string //
	Source      string // if not provided when sending, "sender-0" is used
	Destination string // if not provided when sending, "receiver-0" is used
	// contains filtered or unexported fields
}

Message is a message to be sent to or received from a connection with a Cast device.

func NewMessage

func NewMessage(namespace, source, destination string, payload interface{}) (*Message, error)

func (*Message) GetPayload

func (m *Message) GetPayload(v interface{}) error

func (*Message) RawPayload

func (m *Message) RawPayload() string

func (*Message) SetPayload

func (m *Message) SetPayload(v interface{}) error

Directories

Path Synopsis
Package pb is a generated protocol buffer package.
Package pb is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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