Documentation
¶
Overview ¶
Package chart provides utility for displaying a chart on chart tablet paired with DUT in camerabox setup.
Index ¶
Constants ¶
const DisplayDefaultLevel = -1
DisplayDefaultLevel presents the default display level
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(ctx context.Context, d *dut.DUT, altHostname, outDir string, chartPaths []string) (*Chart, []NamePath, error)
New starts chart service waiting for display chart command on the host either |altHostname| or |d|'s corresponding chart tablet, prepares all chart files to be displayed from |chartPaths| and returns a new |Chart| instance and the |NamePath| for each input chart for further be displayed with.
func SetUp ¶
func SetUp(ctx context.Context, conn *ssh.Conn, outDir string, chartPaths []string) (_ *Chart, _ []NamePath, retErr error)
SetUp sets up the chart with the given ssh connection, prepares all chart files to be displayed from |chartPaths| and returns a new |Chart| instance and the |NamePath| for each input chart for further be displayed with. It uses |displayLevel| to set the brightness, the range is in [0.0, 100.0].
Types ¶
type Chart ¶
type Chart struct {
// contains filtered or unexported fields
}
Chart displays chart files on the chart tablet in a camerabox setup.