sampler: github.com/sqshq/sampler/data Index | Files

package data

import "github.com/sqshq/sampler/data"

Index

Package Files

consumer.go error.go int.go int_basic.go int_pty.go item.go sampler.go trigger.go

Constants

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

type Actions Uses

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

type Alert Uses

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

type BasicInteractiveShell Uses

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

BasicInteractiveShell represents non-PTY interactive shell sampling metadata

type Command Uses

type Command struct {
    Type  string
    Value interface{}
}

type Consumer Uses

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

func NewConsumer Uses

func NewConsumer() *Consumer

func (*Consumer) HandleConsumeFailure Uses

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

func (*Consumer) HandleConsumeSuccess Uses

func (c *Consumer) HandleConsumeSuccess()

type InteractiveShell Uses

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

type Item Uses

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

func NewItems Uses

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

type PtyInteractiveShell Uses

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

PtyInteractiveShell represents PTY interactive shell sampling metadata

type Sample Uses

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

type Sampler Uses

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

func NewSampler Uses

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

func (*Sampler) Pause Uses

func (s *Sampler) Pause(pause bool)

type Trigger Uses

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

func NewTrigger Uses

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

func NewTriggers Uses

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

func (*Trigger) Execute Uses

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

type Values Uses

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

Package data imports 15 packages (graph) and is imported by 10 packages. Updated 2020-01-03. Refresh now. Tools for package owners.