schema

package
v0.0.0-...-2b1f001 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Name      string
	Width     int
	Selectors []string
	Type      string
	Format    *string
	// contains filtered or unexported fields
}

func (Attribute) FilterValue

func (a Attribute) FilterValue() string

func (Attribute) View

func (a Attribute) View() string

type Close

type Close struct{}

type KeyMapDetail

type KeyMapDetail struct {
	SelectNextField key.Binding
	SelectPrevField key.Binding
}

func DetailKeyMap

func DetailKeyMap() KeyMapDetail

type KeyMapMain

type KeyMapMain struct {
	EnterDetail key.Binding
	Exit        key.Binding
	NewField    key.Binding
	DeleteField key.Binding
}

func MainKeyMap

func MainKeyMap() KeyMapMain

type Model

type Model struct {
	Attributes []Attribute
	// contains filtered or unexported fields
}

func FromLogView

func FromLogView(lv config.LogView, width, height int) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

func (Model) UpdateSchema

func (m Model) UpdateSchema() tea.Cmd

func (Model) View

func (m Model) View() string

type UpdatedSchemaMsg

type UpdatedSchemaMsg struct {
	Attributes []config.Attribute
}

Jump to

Keyboard shortcuts

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