inputgraph

package
v0.0.0-...-75739c8 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InputGraph

type InputGraph struct {
	Nodes        []*Node
	AdjacencyMap map[string][]string
	DeviceMap    map[string]*Node
}

func BuildGraph

func BuildGraph(devs []base.Device, tag string) (InputGraph, error)

type Node

type Node struct {
	ID     string
	Device base.Device
}

func CheckReachability

func CheckReachability(deviceA, deviceB string, ig InputGraph) (bool, []Node, error)

where deviceA is the sink and deviceB is the SourceDevice

type ReachableRoomConfig

type ReachableRoomConfig struct {
	base.Room
	InputReachability map[string][]string `json:"input_reachability"`
}

func GetVideoDeviceReachability

func GetVideoDeviceReachability(room base.Room) (ReachableRoomConfig, *nerr.E)

There is a more effient way to do this as part of the initial traversal. TODO: Make this more efficient.

Jump to

Keyboard shortcuts

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