gui

package
v0.0.0-...-c98a189 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GUI

type GUI struct {
	// contains filtered or unexported fields
}

GUI represents a graphical user interface

func New

func New(ctx context.Context, cancel context.CancelFunc) (*GUI, error)

New creates a new GUI

func (*GUI) AddPacket

func (g *GUI) AddPacket(packet *analyzer.EQPacket)

AddPacket adds a new packet to track

func (*GUI) Clear

func (g *GUI) Clear()

Clear refreshes the screen

func (*GUI) Close

func (g *GUI) Close()

Close exits the gui

func (*GUI) DeviceList

func (g *GUI) DeviceList(devices []string, deviceChan chan string) error

DeviceList prompts a user for which device to choose

func (*GUI) SetStatus

func (g *GUI) SetStatus(status string)

SetStatus sets the status text

func (*GUI) StartCapture

func (g *GUI) StartCapture(captureStopChan chan bool) error

StartCapture begins the capturing UI

Jump to

Keyboard shortcuts

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