pcconfig

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

pc-config

get the config for in-room PC's

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Camera

type Camera struct {
	DisplayName string `json:"displayName"`

	TiltUp      string `json:"tiltUp"`
	TiltDown    string `json:"tiltDown"`
	PanLeft     string `json:"panLeft"`
	PanRight    string `json:"panRight"`
	PanTiltStop string `json:"panTiltStop"`

	ZoomIn   string `json:"zoomIn"`
	ZoomOut  string `json:"zoomOut"`
	ZoomStop string `json:"zoomStop"`

	Stream string `json:"stream"`

	Presets []CameraPreset `json:"presets"`
}

type CameraPreset

type CameraPreset struct {
	DisplayName string `json:"displayName"`
	SetPreset   string `json:"setPreset"`
}

type Config

type Config struct {
	ControlKey string   `json:"controlKey"`
	Cameras    []Camera `json:"cameras"`
}

type ConfigService

type ConfigService interface {
	// RoomAndControlGroup returns the room and control group associated with a PC's hostname
	RoomAndControlGroup(ctx context.Context, hostname string) (string, string, error)

	// Cameras returns the camera configurations for the given room and control group
	Cameras(ctx context.Context, room, controlGroup string) ([]Camera, error)
}

ConfigService talks the a datastore to get configuration information.

type ControlKeyService

type ControlKeyService interface {
	ControlKey(ctx context.Context, room, controlGroup string) (string, error)
}

ControlKeyService gets the control key for a room

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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