types

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 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 added in v0.0.23

func ReplaceView() tea.Msg

func Submit added in v0.0.23

func Submit() tea.Msg

func Tick added in v0.0.23

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 added in v0.0.23

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

func (*EntityInfo) Description added in v0.0.23

func (i *EntityInfo) Description() string

func (*EntityInfo) FilterValue added in v0.0.23

func (i *EntityInfo) FilterValue() string

func (*EntityInfo) Title added in v0.0.23

func (i *EntityInfo) Title() string

type Format added in v0.0.23

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

type KeyCallback added in v0.0.23

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

type NoticeLevel added in v0.0.23

type NoticeLevel string

type RenderState added in v0.0.23

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

type ReplaceViewMsg added in v0.0.23

type ReplaceViewMsg struct{}

type SubmitMsg added in v0.0.23

type SubmitMsg struct{}

type TickMsg added in v0.0.23

type TickMsg time.Time

Jump to

Keyboard shortcuts

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