client

package
v0.7.3-0...-e81e75e Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolP

func BoolP(b bool) *bool

BoolP .

func IntP

func IntP(i int) *int

Types

type AudioDevice

type AudioDevice struct {
	IconPair

	Level int  `json:"level"`
	Muted bool `json:"muted"`
}

AudioDevice .

type AudioGroup

type AudioGroup struct {
	Name string `json:"name"`

	AudioDevices []AudioDevice `json:"audioDevices"`
	Muted        bool          `json:"muted"`
}

AudioGroup .

type Builder

type Builder struct {
	DataService    ui.DataService
	AVController   ui.AVController
	EventPublisher ui.EventPublisher

	Log *zap.Logger
}

func (*Builder) New

func (b *Builder) New(ctx context.Context, room, controlGroup string) (ui.Client, error)

type Camera

type Camera struct {
	Name    string   `json:"name"`
	Presets []string `json:"presets"`
}

type ControlGroup

type ControlGroup struct {
	Name string `json:"name"`

	DisplayGroups DisplayGroups  `json:"displayGroups,omitempty"`
	AudioGroups   []AudioGroup   `json:"audioGroups,omitempty"`
	PresentGroups []PresentGroup `json:"presentGroups,omitempty"`

	PoweredOn  bool `json:"poweredOn"`
	MediaAudio struct {
		Level int  `json:"level"`
		Muted bool `json:"muted"`
	} `json:"mediaAudio"`

	ControlInfo struct {
		Key string `json:"key,omitempty"`
		URL string `json:"url,omitempty"`
	} `json:"controlInfo,omitempty"`

	Cameras []Camera `json:"cameras,omitempty"`

	Support Support `json:"support"`
}

ControlGroup .

type DisplayGroup

type DisplayGroup struct {
	Name string `json:"name"`

	Displays []IconPair `json:"displays"`
	Blanked  bool       `json:"blanked"`
	Inputs   []Input    `json:"inputs"`
	Input    string     `json:"input"`

	ShareInfo ShareInfo `json:"shareInfo,omitempty"`
}

DisplayGroup .

type DisplayGroups

type DisplayGroups []DisplayGroup

type IconPair

type IconPair struct {
	Name string `json:"name,omitempty"`
	Icon string `json:"icon"`
}

IconPair .

type Input

type Input struct {
	IconPair

	SubInputs []Input `json:"subInputs,omitempty"`
}

Input .

type PresentGroup

type PresentGroup struct {
	Name string `json:"name"`

	Items []PresentItem `json:"items"`
}

PresentGroup .

type PresentItem

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

PresentItem .

type Room

type Room struct {
	Name string `json:"name"`

	ControlGroups        map[string]ControlGroup `json:"controlGroups"`
	SelectedControlGroup string                  `json:"selectedControlGroup"`
}

Room .

type ShareInfo

type ShareInfo struct {
	// State   shareState `json:"state"`
	Options []string `json:"opts,omitempty"`
	Master  string   `json:"master,omitempty"`
}

ShareInfo .

type Support

type Support struct {
	HelpRequested bool   `json:"helpRequested"`
	HelpMessage   string `json:"helpMessage"`
	HelpEnabled   bool   `json:"helpEnabled"`
}

Support .

Jump to

Keyboard shortcuts

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