Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/sqshq/sampler
/ functions
Functions
208 in github.com/sqshq/sampler
⨍
Functions
208
◇
Types & classes
66
↓ 18 callers
Function
FormatValue
(value float64, scale int)
component/util/format.go:22
↓ 16 callers
Method
changeMode
(m Mode)
component/layout/layout.go:74
↓ 12 callers
Method
getComponent
(i int)
component/layout/layout.go:227
↓ 9 callers
Function
GetMiddlePoint
(rectangle image.Rectangle, text string, offset int)
component/util/format.go:113
↓ 9 callers
Method
Highlight
(component *Component)
component/menu.go:56
↓ 9 callers
Function
NewConsumer
()
data/consumer.go:48
↓ 8 callers
Function
NewBlock
(title string, border bool, palette console.Palette)
component/block.go:9
↓ 7 callers
Function
Exit
Exit function exits the program successfully
console/console.go:48
↓ 7 callers
Method
Idle
()
component/menu.go:67
↓ 7 callers
Function
validateItemScripts
(title string, i Item)
config/validator.go:50
↓ 6 callers
Function
RenderAlert
(alert *data.Alert, area image.Rectangle, buffer *ui.Buffer)
component/alert.go:13
↓ 6 callers
Function
setDefaultTriggersValues
(triggers []TriggerConfig)
config/default.go:150
↓ 6 callers
Method
start
(drawable ui.Drawable, consumer *data.Consumer, componentConfig config.ComponentConfig, itemsConfig []config.I
main.go:58
↓ 5 callers
Method
HandleConsumeFailure
(title string, err error, sample *Sample)
data/consumer.go:21
↓ 5 callers
Method
HandleConsumeSuccess
()
data/consumer.go:15
↓ 5 callers
Function
ParseFloat
(input string)
component/util/parse.go:8
↓ 4 callers
Function
Asset
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 callers
Function
GetMenuColorReverse
GetMenuColorReverse returns a color based on the operating system target
console/palette.go:87
↓ 4 callers
Function
GetPalette
GetPalette returns a color palette based on specified theme
console/palette.go:51
↓ 4 callers
Function
GetRectBottomSideCenter
(rect image.Rectangle)
component/util/geometry.go:28
↓ 4 callers
Function
GetRectLeftSideCenter
(rect image.Rectangle)
component/util/geometry.go:7
↓ 4 callers
Function
GetRectRightSideCenter
(rect image.Rectangle)
component/util/geometry.go:14
↓ 4 callers
Function
GetRectTopSideCenter
(rect image.Rectangle)
component/util/geometry.go:21
↓ 4 callers
Method
Move
(x, y int)
component/component.go:31
↓ 4 callers
Method
Resize
(x, y int)
component/component.go:37
↓ 4 callers
Method
isInRange
(time time.Time)
component/runchart/grid.go:145
↓ 4 callers
Method
moveSelection
(direction string)
component/layout/layout.go:235
↓ 3 callers
Method
Close
()
asset/file.go:20
↓ 3 callers
Function
GetMenuColor
GetMenuColor returns a color based on the operating system target
console/palette.go:76
↓ 3 callers
Method
GetRectangle
()
config/component.go:36
↓ 3 callers
Function
_filePath
(dir, name string)
asset/bindata.go:278
↓ 3 callers
Function
bindataRead
(data []byte, name string)
asset/bindata.go:20
↓ 3 callers
Method
calculateTimeCoordinate
(t time.Time)
component/runchart/runchart.go:310
↓ 3 callers
Function
enrichEnvVariables
(cmd *exec.Cmd, variables []string)
data/item.go:102
↓ 3 callers
Function
getSquare
(c *ComponentConfig)
config/arrangement.go:87
↓ 3 callers
Method
pause
(pause bool)
event/handler.go:87
↓ 2 callers
Function
FormatDelta
(value float64, scale int)
component/util/format.go:29
↓ 2 callers
Function
GetGradientColor
(gradient []ui.Color, cur int, max int)
console/palette.go:96
↓ 2 callers
Function
Max
(numbers []int)
component/util/math.go:3
↓ 2 callers
Method
ModTime
()
asset/bindata.go:61
↓ 2 callers
Method
MoveOrResize
()
component/menu.go:95
↓ 2 callers
Method
TogglePause
()
component/statusbar.go:59
↓ 2 callers
Function
braillePoint
(point image.Point)
component/runchart/runchart.go:361
↓ 2 callers
Function
calculateComponentCoordinates
(c *component.Component, columnWidth float64, rowHeight float64)
component/layout/layout.go:337
↓ 2 callers
Function
calculatePercent
(g *Gauge)
component/gauge/gauge.go:122
↓ 2 callers
Method
execute
()
data/int.go:13
↓ 2 callers
Method
execute
(variables []string, script string)
data/item.go:63
↓ 2 callers
Method
getAwaitTimeout
()
data/int_pty.go:122
↓ 2 callers
Function
getErrorMessage
(err error)
data/error.go:8
↓ 2 callers
Method
getSelection
()
component/layout/layout.go:231
↓ 2 callers
Method
init
()
data/int.go:12
↓ 2 callers
Method
normalize
()
component/component.go:43
↓ 2 callers
Method
printAllDirectionsArrowSign
(buffer *ui.Buffer, y int)
component/menu.go:172
↓ 2 callers
Function
readFile
(location *string)
config/config.go:102
↓ 2 callers
Method
runScript
(script, label string, data Values)
data/trigger.go:120
↓ 2 callers
Method
transform
(sample string)
data/item.go:93
↓ 2 callers
Method
trimOutOfRangeValues
(maxSize int)
component/sparkline/sparkline.go:88
↓ 2 callers
Method
updateDimensions
()
component/menu.go:211
↓ 2 callers
Function
validateItemsScripts
(title string, items []Item)
config/validator.go:44
↓ 2 callers
Function
validateLabelsUniqueness
(title string, items []Item)
config/validator.go:59
↓ 1 callers
Method
AddComponent
(cpt *component.Component)
component/layout/layout.go:66
↓ 1 callers
Method
AddLine
(Label string, color ui.Color)
component/runchart/runchart.go:147
↓ 1 callers
Function
AssetDir
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 callers
Function
AssetInfo
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 callers
Method
Beep
()
asset/player.go:37
↓ 1 callers
Method
ChangeDimensions
(width, height int)
component/layout/layout.go:223
↓ 1 callers
Method
Choose
()
component/menu.go:63
↓ 1 callers
Function
Close
Close function calls Close from termui package, which closes termbox-go
console/console.go:43
↓ 1 callers
Method
Close
()
asset/player.go:49
↓ 1 callers
Method
ConsumeSample
(sample *data.Sample)
component/gauge/gauge.go:58
↓ 1 callers
Method
Down
()
component/menu.go:83
↓ 1 callers
Method
Draw
(buffer *ui.Buffer)
component/menu.go:99
↓ 1 callers
Method
Draw
(buffer *ui.Buffer)
component/runchart/runchart.go:129
↓ 1 callers
Method
Execute
(sample *Sample)
data/trigger.go:70
↓ 1 callers
Method
GetLocation
()
config/component.go:28
↓ 1 callers
Function
GetRectCoordinates
(area image.Rectangle, width int, height int)
component/util/geometry.go:35
↓ 1 callers
Method
GetSelectedOption
()
component/menu.go:52
↓ 1 callers
Method
GetSize
()
config/component.go:32
↓ 1 callers
Method
HandleEvents
()
event/handler.go:37
↓ 1 callers
Method
HandleKeyboardEvent
(e string)
component/layout/layout.go:97
↓ 1 callers
Method
HandleMouseClick
(x int, y int)
component/layout/layout.go:82
↓ 1 callers
Function
Init
()
console/console.go:32
↓ 1 callers
Function
LoadConfig
()
config/config.go:24
↓ 1 callers
Method
Mode
()
asset/bindata.go:58
↓ 1 callers
Function
NewAsciiBox
(c config.AsciiBoxConfig, palette console.Palette)
component/asciibox/asciibox.go:29
↓ 1 callers
Function
NewAssetFile
(data []byte)
asset/file.go:12
↓ 1 callers
Function
NewAudioPlayer
()
asset/player.go:15
↓ 1 callers
Function
NewBarChart
(c config.BarChartConfig, palette console.Palette)
component/barchart/barchart.go:38
↓ 1 callers
Function
NewComponent
(dbl ui.Drawable, cmr *data.Consumer, cfg config.ComponentConfig)
component/component.go:19
↓ 1 callers
Function
NewGauge
(c config.GaugeConfig, palette console.Palette)
component/gauge/gauge.go:33
↓ 1 callers
Function
NewHandler
(samplers []*data.Sampler, options config.Options, layout *layout.Layout)
event/handler.go:25
↓ 1 callers
Function
NewItems
(cfgs []config.Item, rateMs int)
data/item.go:26
↓ 1 callers
Function
NewLayout
(statusline *component.StatusBar, menu *component.Menu)
component/layout/layout.go:47
↓ 1 callers
Function
NewMenu
(palette console.Palette)
component/menu.go:42
↓ 1 callers
Function
NewRunChart
(c config.RunChartConfig, palette console.Palette)
component/runchart/runchart.go:81
↓ 1 callers
Function
NewSampler
(consumer *Consumer, items []*Item, triggers []*Trigger, options config.Options, fileVariables map[string]stri
data/sampler.go:18
↓ 1 callers
Function
NewSparkLine
(c config.SparkLineConfig, palette console.Palette)
component/sparkline/sparkline.go:27
↓ 1 callers
Function
NewStatusBar
(configFileName string, palette console.Palette)
component/statusbar.go:22
↓ 1 callers
Function
NewTextBox
(c config.TextBoxConfig, palette console.Palette)
component/textbox/textbox.go:22
↓ 1 callers
Function
NewTrigger
(config config.TriggerConfig, consumer *Consumer, options config.Options, player *asset.AudioPlayer)
data/trigger.go:52
next →
1–100 of 208, ranked by callers