model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitialModel

func InitialModel() *model

func LabelKeyNames

func LabelKeyNames(keys []LabelKey) []string

func NewNodeInfos

func NewNodeInfos() *nodeInfos

Types

type LabelKey

type LabelKey struct {
	Name  string
	Style lipgloss.Style
}

func NewLabelKey

func NewLabelKey() *LabelKey

func (*LabelKey) Render

func (k *LabelKey) Render() string

TODO: should be pull up to common pkg

func (*LabelKey) WithName

func (k *LabelKey) WithName(name string) *LabelKey

type LabelValue

type LabelValue struct {
	Name  string
	Key   LabelKey
	Style lipgloss.Style
}

func NewLabelValue

func NewLabelValue() *LabelValue

func (*LabelValue) Render

func (v *LabelValue) Render() string

func (*LabelValue) WithKey

func (v *LabelValue) WithKey(key LabelKey) *LabelValue

func (*LabelValue) WithName

func (v *LabelValue) WithName(name string) *LabelValue

Jump to

Keyboard shortcuts

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