types

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2025 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TickTime = time.Millisecond * 250

Functions

func ReplaceView

func ReplaceView() tea.Msg

func Submit

func Submit() tea.Msg

func Tick

func Tick() tea.Msg

Types

type Collection

type Collection interface {
	Items() []*EntityInfo
	YAML() (string, error)
	JSON() (string, error)
	Singular() string
	Plural() string
}

type Entity

type Entity interface {
	YAML() (string, error)
	JSON() (string, error)
	Markdown() string
}

type EntityInfo

type EntityInfo struct {
	Header    string
	SubHeader string
	Desc      string
	ID        string
}

func (*EntityInfo) Description

func (i *EntityInfo) Description() string

func (*EntityInfo) FilterValue

func (i *EntityInfo) FilterValue() string

func (*EntityInfo) Title

func (i *EntityInfo) Title() string

type Format

type Format string
const (
	CollectionFormatList Format = "list"
	CollectionFormatJSON Format = "json"
	CollectionFormatYAML Format = "yaml"
)
const (
	EntityFormatJSON     Format = "json"
	EntityFormatYAML     Format = "yaml"
	EntityFormatDocument Format = "md"
)

type KeyCallback

type KeyCallback struct {
	Key      string
	Label    string
	Callback func() error
}

type NoticeLevel

type NoticeLevel string

type RenderState

type RenderState struct {
	Width         int
	Height        int
	ContentWidth  int
	ContentHeight int
	Theme         themes.Theme
}

type ReplaceViewMsg

type ReplaceViewMsg struct{}

type SubmitMsg

type SubmitMsg struct{}

type TickMsg

type TickMsg time.Time

Jump to

Keyboard shortcuts

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