MCPcopy Create free account

hub / github.com/sqshq/sampler / functions

Functions208 in github.com/sqshq/sampler

↓ 18 callersFunctionFormatValue
(value float64, scale int)
component/util/format.go:22
↓ 16 callersMethodchangeMode
(m Mode)
component/layout/layout.go:74
↓ 12 callersMethodgetComponent
(i int)
component/layout/layout.go:227
↓ 9 callersFunctionGetMiddlePoint
(rectangle image.Rectangle, text string, offset int)
component/util/format.go:113
↓ 9 callersMethodHighlight
(component *Component)
component/menu.go:56
↓ 9 callersFunctionNewConsumer
()
data/consumer.go:48
↓ 8 callersFunctionNewBlock
(title string, border bool, palette console.Palette)
component/block.go:9
↓ 7 callersFunctionExit
Exit function exits the program successfully
console/console.go:48
↓ 7 callersMethodIdle
()
component/menu.go:67
↓ 7 callersFunctionvalidateItemScripts
(title string, i Item)
config/validator.go:50
↓ 6 callersFunctionRenderAlert
(alert *data.Alert, area image.Rectangle, buffer *ui.Buffer)
component/alert.go:13
↓ 6 callersFunctionsetDefaultTriggersValues
(triggers []TriggerConfig)
config/default.go:150
↓ 6 callersMethodstart
(drawable ui.Drawable, consumer *data.Consumer, componentConfig config.ComponentConfig, itemsConfig []config.I
main.go:58
↓ 5 callersMethodHandleConsumeFailure
(title string, err error, sample *Sample)
data/consumer.go:21
↓ 5 callersMethodHandleConsumeSuccess
()
data/consumer.go:15
↓ 5 callersFunctionParseFloat
(input string)
component/util/parse.go:8
↓ 4 callersFunctionAsset
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
asset/bindata.go:134
↓ 4 callersFunctionGetMenuColorReverse
GetMenuColorReverse returns a color based on the operating system target
console/palette.go:87
↓ 4 callersFunctionGetPalette
GetPalette returns a color palette based on specified theme
console/palette.go:51
↓ 4 callersFunctionGetRectBottomSideCenter
(rect image.Rectangle)
component/util/geometry.go:28
↓ 4 callersFunctionGetRectLeftSideCenter
(rect image.Rectangle)
component/util/geometry.go:7
↓ 4 callersFunctionGetRectRightSideCenter
(rect image.Rectangle)
component/util/geometry.go:14
↓ 4 callersFunctionGetRectTopSideCenter
(rect image.Rectangle)
component/util/geometry.go:21
↓ 4 callersMethodMove
(x, y int)
component/component.go:31
↓ 4 callersMethodResize
(x, y int)
component/component.go:37
↓ 4 callersMethodisInRange
(time time.Time)
component/runchart/grid.go:145
↓ 4 callersMethodmoveSelection
(direction string)
component/layout/layout.go:235
↓ 3 callersMethodClose
()
asset/file.go:20
↓ 3 callersFunctionGetMenuColor
GetMenuColor returns a color based on the operating system target
console/palette.go:76
↓ 3 callersMethodGetRectangle
()
config/component.go:36
↓ 3 callersFunction_filePath
(dir, name string)
asset/bindata.go:278
↓ 3 callersFunctionbindataRead
(data []byte, name string)
asset/bindata.go:20
↓ 3 callersMethodcalculateTimeCoordinate
(t time.Time)
component/runchart/runchart.go:310
↓ 3 callersFunctionenrichEnvVariables
(cmd *exec.Cmd, variables []string)
data/item.go:102
↓ 3 callersFunctiongetSquare
(c *ComponentConfig)
config/arrangement.go:87
↓ 3 callersMethodpause
(pause bool)
event/handler.go:87
↓ 2 callersFunctionFormatDelta
(value float64, scale int)
component/util/format.go:29
↓ 2 callersFunctionGetGradientColor
(gradient []ui.Color, cur int, max int)
console/palette.go:96
↓ 2 callersFunctionMax
(numbers []int)
component/util/math.go:3
↓ 2 callersMethodModTime
()
asset/bindata.go:61
↓ 2 callersMethodMoveOrResize
()
component/menu.go:95
↓ 2 callersMethodTogglePause
()
component/statusbar.go:59
↓ 2 callersFunctionbraillePoint
(point image.Point)
component/runchart/runchart.go:361
↓ 2 callersFunctioncalculateComponentCoordinates
(c *component.Component, columnWidth float64, rowHeight float64)
component/layout/layout.go:337
↓ 2 callersFunctioncalculatePercent
(g *Gauge)
component/gauge/gauge.go:122
↓ 2 callersMethodexecute
()
data/int.go:13
↓ 2 callersMethodexecute
(variables []string, script string)
data/item.go:63
↓ 2 callersMethodgetAwaitTimeout
()
data/int_pty.go:122
↓ 2 callersFunctiongetErrorMessage
(err error)
data/error.go:8
↓ 2 callersMethodgetSelection
()
component/layout/layout.go:231
↓ 2 callersMethodinit
()
data/int.go:12
↓ 2 callersMethodnormalize
()
component/component.go:43
↓ 2 callersMethodprintAllDirectionsArrowSign
(buffer *ui.Buffer, y int)
component/menu.go:172
↓ 2 callersFunctionreadFile
(location *string)
config/config.go:102
↓ 2 callersMethodrunScript
(script, label string, data Values)
data/trigger.go:120
↓ 2 callersMethodtransform
(sample string)
data/item.go:93
↓ 2 callersMethodtrimOutOfRangeValues
(maxSize int)
component/sparkline/sparkline.go:88
↓ 2 callersMethodupdateDimensions
()
component/menu.go:211
↓ 2 callersFunctionvalidateItemsScripts
(title string, items []Item)
config/validator.go:44
↓ 2 callersFunctionvalidateLabelsUniqueness
(title string, items []Item)
config/validator.go:59
↓ 1 callersMethodAddComponent
(cpt *component.Component)
component/layout/layout.go:66
↓ 1 callersMethodAddLine
(Label string, color ui.Color)
component/runchart/runchart.go:147
↓ 1 callersFunctionAssetDir
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data c
asset/bindata.go:201
↓ 1 callersFunctionAssetInfo
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
asset/bindata.go:160
↓ 1 callersMethodBeep
()
asset/player.go:37
↓ 1 callersMethodChangeDimensions
(width, height int)
component/layout/layout.go:223
↓ 1 callersMethodChoose
()
component/menu.go:63
↓ 1 callersFunctionClose
Close function calls Close from termui package, which closes termbox-go
console/console.go:43
↓ 1 callersMethodClose
()
asset/player.go:49
↓ 1 callersMethodConsumeSample
(sample *data.Sample)
component/gauge/gauge.go:58
↓ 1 callersMethodDown
()
component/menu.go:83
↓ 1 callersMethodDraw
(buffer *ui.Buffer)
component/menu.go:99
↓ 1 callersMethodDraw
(buffer *ui.Buffer)
component/runchart/runchart.go:129
↓ 1 callersMethodExecute
(sample *Sample)
data/trigger.go:70
↓ 1 callersMethodGetLocation
()
config/component.go:28
↓ 1 callersFunctionGetRectCoordinates
(area image.Rectangle, width int, height int)
component/util/geometry.go:35
↓ 1 callersMethodGetSelectedOption
()
component/menu.go:52
↓ 1 callersMethodGetSize
()
config/component.go:32
↓ 1 callersMethodHandleEvents
()
event/handler.go:37
↓ 1 callersMethodHandleKeyboardEvent
(e string)
component/layout/layout.go:97
↓ 1 callersMethodHandleMouseClick
(x int, y int)
component/layout/layout.go:82
↓ 1 callersFunctionInit
()
console/console.go:32
↓ 1 callersFunctionLoadConfig
()
config/config.go:24
↓ 1 callersMethodMode
()
asset/bindata.go:58
↓ 1 callersFunctionNewAsciiBox
(c config.AsciiBoxConfig, palette console.Palette)
component/asciibox/asciibox.go:29
↓ 1 callersFunctionNewAssetFile
(data []byte)
asset/file.go:12
↓ 1 callersFunctionNewAudioPlayer
()
asset/player.go:15
↓ 1 callersFunctionNewBarChart
(c config.BarChartConfig, palette console.Palette)
component/barchart/barchart.go:38
↓ 1 callersFunctionNewComponent
(dbl ui.Drawable, cmr *data.Consumer, cfg config.ComponentConfig)
component/component.go:19
↓ 1 callersFunctionNewGauge
(c config.GaugeConfig, palette console.Palette)
component/gauge/gauge.go:33
↓ 1 callersFunctionNewHandler
(samplers []*data.Sampler, options config.Options, layout *layout.Layout)
event/handler.go:25
↓ 1 callersFunctionNewItems
(cfgs []config.Item, rateMs int)
data/item.go:26
↓ 1 callersFunctionNewLayout
(statusline *component.StatusBar, menu *component.Menu)
component/layout/layout.go:47
↓ 1 callersFunctionNewMenu
(palette console.Palette)
component/menu.go:42
↓ 1 callersFunctionNewRunChart
(c config.RunChartConfig, palette console.Palette)
component/runchart/runchart.go:81
↓ 1 callersFunctionNewSampler
(consumer *Consumer, items []*Item, triggers []*Trigger, options config.Options, fileVariables map[string]stri
data/sampler.go:18
↓ 1 callersFunctionNewSparkLine
(c config.SparkLineConfig, palette console.Palette)
component/sparkline/sparkline.go:27
↓ 1 callersFunctionNewStatusBar
(configFileName string, palette console.Palette)
component/statusbar.go:22
↓ 1 callersFunctionNewTextBox
(c config.TextBoxConfig, palette console.Palette)
component/textbox/textbox.go:22
↓ 1 callersFunctionNewTrigger
(config config.TriggerConfig, consumer *Consumer, options config.Options, player *asset.AudioPlayer)
data/trigger.go:52
next →1–100 of 208, ranked by callers