display

package
v0.0.0-...-165a1b0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: LGPL-2.1 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const CLEARANCE = 8
View Source
const VERSION = "v1.1"

Variables

View Source
var Filter_type []string = []string{"ALL", "ERROR", "WARNING", "INFO", "DEBUG"}
View Source
var LogLevelColor map[string]string = map[string]string{
	"ALL":     "\u001b[0;0m",
	"INFO":    "\u001b[0;34m",
	"DEBUG":   "\u001b[0;32m",
	"WARNING": "\u001b[1;33m",
	"ERROR":   "\u001b[1;31m",
}
View Source
var LogLevelColorSelected map[string]string = map[string]string{
	"INFO":    "\u001b[0;104m",
	"DEBUG":   "\u001b[0;102m",
	"WARNING": "\u001b[1;103m",
	"ERROR":   "\u001b[1;101m",
}
View Source
var LogLevelDisp map[string]string = map[string]string{
	"INFO":    "ℹ️   INFO",
	"DEBUG":   "🪲  DEBUG",
	"WARNING": "🚨WARNING",
	"ERROR":   "❌  ERROR",
}

Functions

This section is empty.

Types

type Displayer

type Displayer struct {
	Filename        string
	SelectedLine    [3]int
	CurrentSkip     [3]int
	W               int
	H               int
	SelectedThread  *parser.LogLineArray
	SelectedLL      *parser.LogLine
	ContextLevel    int
	FilterTypeIndex int
	// contains filtered or unexported fields
}

func NewDisplayer

func NewDisplayer(filename string) Displayer

func (Displayer) Lenght

func (d Displayer) Lenght() int

func (*Displayer) PrintResult

func (d *Displayer) PrintResult()

func (*Displayer) PrintStep1

func (d *Displayer) PrintStep1(clearance int, show *string) int

func (*Displayer) PrintStep2

func (d *Displayer) PrintStep2(clearance int, show *string) int

func (*Displayer) PrintStep3

func (d *Displayer) PrintStep3(clearance int, show *string) int

func (*Displayer) ReadContent

func (d *Displayer) ReadContent()

func (*Displayer) RefreshSize

func (d *Displayer) RefreshSize() (hasChanged bool)

func (*Displayer) SelectCurrent

func (d *Displayer) SelectCurrent()

Jump to

Keyboard shortcuts

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