data

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2019 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TrueIndicator = "1"
	InitialValue  = "0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Actions

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

type Alert

type Alert struct {
	Title       string
	Text        string
	Color       *ui.Color
	Recoverable bool
}

type BasicInteractiveShell

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

BasicInteractiveShell represents non-PTY interactive shell sampling metadata

type Command

type Command struct {
	Type  string
	Value interface{}
}

type Consumer

type Consumer struct {
	SampleChannel  chan *Sample
	AlertChannel   chan *Alert
	CommandChannel chan *Command
	Alert          *Alert
}

func NewConsumer

func NewConsumer() *Consumer

func (*Consumer) HandleConsumeFailure

func (c *Consumer) HandleConsumeFailure(title string, err error, sample *Sample)

func (*Consumer) HandleConsumeSuccess

func (c *Consumer) HandleConsumeSuccess()

type InteractiveShell

type InteractiveShell interface {
	// contains filtered or unexported methods
}

type Item

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

func NewItems

func NewItems(cfgs []config.Item, rateMs int) []*Item

type PtyInteractiveShell

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

PtyInteractiveShell represents PTY interactive shell sampling metadata

type Sample

type Sample struct {
	Label string
	Value string
	Color *ui.Color
}

type Sampler

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

func NewSampler

func NewSampler(consumer *Consumer, items []*Item, triggers []*Trigger, options config.Options, fileVariables map[string]string, rateMs int) *Sampler

func (*Sampler) Pause

func (s *Sampler) Pause(pause bool)

type Trigger

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

func NewTrigger

func NewTrigger(config config.TriggerConfig, consumer *Consumer, options config.Options, player *asset.AudioPlayer) *Trigger

func NewTriggers

func NewTriggers(cfgs []config.TriggerConfig, consumer *Consumer, options config.Options, player *asset.AudioPlayer) []*Trigger

func (*Trigger) Execute

func (t *Trigger) Execute(sample *Sample)

type Values

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

Jump to

Keyboard shortcuts

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