Documentation ¶
Index ¶
- Constants
- Variables
- func NewApp(configFile string) *appScaffold
- func NewAppWithConfig(cfg *config.Config) *appScaffold
- func NewHorizontalSeparator(lineStyle tcell.Style, lineRune rune, text string, textColor tcell.Color) *tview.Box
- type App
- type ColorPickerButton
- func (c *ColorPickerButton) Blur()
- func (c *ColorPickerButton) Focus(delegate func(p tview.Primitive))
- func (c *ColorPickerButton) GetFieldHeight() int
- func (c *ColorPickerButton) GetFieldWidth() int
- func (c *ColorPickerButton) GetLabel() string
- func (c *ColorPickerButton) HasFocus() bool
- func (c *ColorPickerButton) SetBlurFunc(callback func()) *tview.Box
- func (c *ColorPickerButton) SetDisabled(disabled bool) tview.FormItem
- func (c *ColorPickerButton) SetFieldWidth(width int) *ColorPickerButton
- func (c *ColorPickerButton) SetFinishedFunc(handler func(key tcell.Key)) tview.FormItem
- func (c *ColorPickerButton) SetFocusFunc(callback func()) *tview.Box
- func (c *ColorPickerButton) SetFormAttributes(labelWidth int, labelColor, bgColor, fieldTextColor, fieldBgColor tcell.Color) tview.FormItem
- func (c *ColorPickerButton) SetLabel(label string) *ColorPickerButton
- func (c *ColorPickerButton) SetText(text string) *ColorPickerButton
- type ColorPickerData
- type ColorPickerView
- type FilterView
- type JsonView
- type LogData
- type LogView
- type Loggo
- type LoggoApp
- func (a *LoggoApp) Config() *config.Config
- func (a *LoggoApp) DismissModal(resetFocusTo tview.Primitive)
- func (a *LoggoApp) Draw()
- func (a *LoggoApp) PopView()
- func (a *LoggoApp) Run()
- func (a *LoggoApp) SetFocus(primitive tview.Primitive)
- func (a *LoggoApp) SetInputCapture(cap func(event *tcell.EventKey) *tcell.EventKey)
- func (a *LoggoApp) ShowModal(p tview.Primitive, width, height int, bgColor tcell.Color, cap inputCapture)
- func (a *LoggoApp) ShowPopMessage(text string, waitSecs int64, resetFocusTo tview.Primitive)
- func (a *LoggoApp) ShowPrefabModal(text string, width, height int, cap inputCapture, buttons ...*tview.Button)
- func (a *LoggoApp) StackView(p tview.Primitive)
- func (a *LoggoApp) Stop()
- type SplashScreen
- type TemplateData
- type TemplateItemView
- type TemplateView
Constants ¶
View Source
const LineHThick = '\u2501'
View Source
const LineHThin = '\u2500'
Variables ¶
View Source
var BuildVersion string
View Source
var LatestLog string
Functions ¶
func NewAppWithConfig ¶
Types ¶
type ColorPickerButton ¶
func NewColorPickerButton ¶
func NewColorPickerButton(app Loggo, label, value string, fieldWidth int, changedFunc func(string)) *ColorPickerButton
func (*ColorPickerButton) Blur ¶
func (c *ColorPickerButton) Blur()
func (*ColorPickerButton) Focus ¶
func (c *ColorPickerButton) Focus(delegate func(p tview.Primitive))
func (*ColorPickerButton) GetFieldHeight ¶ added in v0.3.17
func (c *ColorPickerButton) GetFieldHeight() int
func (*ColorPickerButton) GetFieldWidth ¶
func (c *ColorPickerButton) GetFieldWidth() int
func (*ColorPickerButton) GetLabel ¶
func (c *ColorPickerButton) GetLabel() string
func (*ColorPickerButton) HasFocus ¶
func (c *ColorPickerButton) HasFocus() bool
func (*ColorPickerButton) SetBlurFunc ¶
func (c *ColorPickerButton) SetBlurFunc(callback func()) *tview.Box
func (*ColorPickerButton) SetDisabled ¶ added in v0.3.17
func (c *ColorPickerButton) SetDisabled(disabled bool) tview.FormItem
func (*ColorPickerButton) SetFieldWidth ¶
func (c *ColorPickerButton) SetFieldWidth(width int) *ColorPickerButton
func (*ColorPickerButton) SetFinishedFunc ¶
func (c *ColorPickerButton) SetFinishedFunc(handler func(key tcell.Key)) tview.FormItem
func (*ColorPickerButton) SetFocusFunc ¶
func (c *ColorPickerButton) SetFocusFunc(callback func()) *tview.Box
func (*ColorPickerButton) SetFormAttributes ¶
func (c *ColorPickerButton) SetFormAttributes( labelWidth int, labelColor, bgColor, fieldTextColor, fieldBgColor tcell.Color) tview.FormItem
func (*ColorPickerButton) SetLabel ¶
func (c *ColorPickerButton) SetLabel(label string) *ColorPickerButton
func (*ColorPickerButton) SetText ¶
func (c *ColorPickerButton) SetText(text string) *ColorPickerButton
type ColorPickerData ¶
type ColorPickerData struct { tview.TableContentReadOnly // contains filtered or unexported fields }
func (*ColorPickerData) GetCell ¶
func (d *ColorPickerData) GetCell(row, column int) *tview.TableCell
func (*ColorPickerData) GetColumnCount ¶
func (d *ColorPickerData) GetColumnCount() int
func (*ColorPickerData) GetRowCount ¶
func (d *ColorPickerData) GetRowCount() int
type ColorPickerView ¶
func NewColorPickerView ¶
func NewColorPickerView(app Loggo, title string, onSelect func(string), toggleFullScreenCallback, closeCallback func()) *ColorPickerView
func (*ColorPickerView) SelectColor ¶
func (t *ColorPickerView) SelectColor(color string)
type FilterView ¶ added in v0.2.10
func NewFilterView ¶ added in v0.2.10
func NewFilterView(app Loggo, filterCallback func(*filter.Expression)) *FilterView
type JsonView ¶
func NewJsonView ¶
type LogData ¶
type LogData struct { tview.TableContentReadOnly // contains filtered or unexported fields }
func (*LogData) GetColumnCount ¶
func (*LogData) GetRowCount ¶
type Loggo ¶
type Loggo interface { Draw() SetInputCapture(cap func(event *tcell.EventKey) *tcell.EventKey) Stop() SetFocus(primitive tview.Primitive) ShowPopMessage(text string, waitSecs int64, resetFocusTo tview.Primitive) ShowPrefabModal(text string, width, height int, capture inputCapture, buttons ...*tview.Button) ShowModal(p tview.Primitive, width, height int, bgColor tcell.Color, capture inputCapture) DismissModal(resetFocusTo tview.Primitive) Config() *config.Config StackView(p tview.Primitive) PopView() }
type LoggoApp ¶
type LoggoApp struct {
// contains filtered or unexported fields
}
func (*LoggoApp) DismissModal ¶
func (*LoggoApp) SetInputCapture ¶
func (a *LoggoApp) SetInputCapture(cap func(event *tcell.EventKey) *tcell.EventKey)
func (*LoggoApp) ShowPopMessage ¶ added in v0.2.3
func (*LoggoApp) ShowPrefabModal ¶
type SplashScreen ¶
func NewSplashScreen ¶
func NewSplashScreen(app Loggo) *SplashScreen
func (*SplashScreen) PrintCanvasAsColorString ¶
func (t *SplashScreen) PrintCanvasAsColorString(foreground, shade rune, foregroundColor, shadeColor, backgroundColor string) string
type TemplateData ¶
type TemplateData struct { tview.TableContentReadOnly // contains filtered or unexported fields }
func (*TemplateData) GetColumnCount ¶
func (d *TemplateData) GetColumnCount() int
func (*TemplateData) GetRowCount ¶
func (d *TemplateData) GetRowCount() int
type TemplateItemView ¶
func NewTemplateItemView ¶
func NewTemplateItemView(app Loggo, key *config.Key, toggleFullScreenCallback, closeCallback func()) *TemplateItemView
type TemplateView ¶
func NewTemplateView ¶
func NewTemplateView(app Loggo, showQuit bool, toggleFullScreenCallback, closeCallback func()) *TemplateView
func (*TemplateView) Close ¶
func (t *TemplateView) Close()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.