input

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Matcher = regroup.MustCompile(logRegex)
)

Functions

func LeadingRowSize added in v0.0.3

func LeadingRowSize(config Config) int

Types

type ColumnDef added in v0.0.3

type ColumnDef struct {
	Title string `json:"name"`
	Width int    `json:"width"`
}

type Config added in v0.0.3

type Config struct {
	Columns []ColumnDef `json:"columns"`
	Regex   string      `json:"regex"`
	Input   string      `json:"input"`
}

func DefaultConfig added in v0.0.3

func DefaultConfig() Config

func GetConfig added in v0.0.3

func GetConfig() Config

func (Config) GetColumns added in v0.0.4

func (c Config) GetColumns(expected int) []table.Column

func (Config) GetLevelColumnIndex added in v0.0.4

func (c Config) GetLevelColumnIndex() int

func (Config) GetMsgColumnIndex added in v0.0.4

func (c Config) GetMsgColumnIndex() int

func (Config) Save added in v0.0.4

func (c Config) Save()

type LogHandler added in v0.0.2

type LogHandler struct {
	MsgAppender chan string
	RowAppender chan table.Row
	Reader      io.Reader
	Columns     []string
	Regex       *regroup.ReGroup
	LeadingSize int
}

func (LogHandler) HandleLog added in v0.0.2

func (h LogHandler) HandleLog() tea.Cmd

Jump to

Keyboard shortcuts

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