receiver

package
v0.0.0-...-700dddc Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2018 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationSession

type ApplicationSession struct {
	AppID       *string      `json:"appId,omitempty"`
	DisplayName *string      `json:"displayName,omitempty"`
	Namespaces  []*Namespace `json:"namespaces"`
	SessionID   *string      `json:"sessionId,omitempty"`
	StatusText  *string      `json:"statusText,omitempty"`
	TransportID *string      `json:"transportId,omitempty"`
}

ApplicationSession is a descript of the application

type LaunchRequest

type LaunchRequest struct {
	primitives.PayloadHeaders
	AppID *string `json:"appId,omitempty"`
}

LaunchRequest is a command to the receiver controller namespace to launch an application.

type Namespace

type Namespace struct {
	Name string `json:"name"`
}

Namespace is the channel namespace of the application

type Status

type Status struct {
	primitives.PayloadHeaders
	Applications []*ApplicationSession `json:"applications"`
	Volume       *Volume               `json:"volume,omitempty"`
}

Status is the general struct containing the volume as well as the current application sessions.

func (*Status) GetSessionByNamespace

func (s *Status) GetSessionByNamespace(namespace string) *ApplicationSession

GetSessionByNamespace attempts to return the first session with a specified namespace.

type StatusResponse

type StatusResponse struct {
	primitives.PayloadHeaders
	Status *Status `json:"status,omitempty"`
}

StatusResponse is the main wrapper around a receiver status

type StopRequest

type StopRequest struct {
	primitives.PayloadHeaders
	SessionID *string `json:"sessionID,omitempty"`
}

StopRequest is a command to the receiver controller namespace to launch an application.

type Volume

type Volume struct {
	Level *float64 `json:"level,omitempty"`
	Muted *bool    `json:"muted,omitempty"`
}

Volume is the struct containing current volume information

Jump to

Keyboard shortcuts

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