inputgraph

package
v0.0.0-...-8472d0d Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 3

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 []structs.Device, tag string) (InputGraph, error)

type Node

type Node struct {
	ID     string
	Device structs.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 {
	structs.Room
	InputReachability map[string][]string `json:"input_reachability"`
}

func GetVideoDeviceReachability

func GetVideoDeviceReachability(room structs.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