models

package
v1.0.39 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Update

func Update[T any](sink *CmdSink, msg tea.Msg, model TeaModel[T]) T

Types

type CmdSink

type CmdSink struct {
	// contains filtered or unexported fields
}

func NewCmdSink

func NewCmdSink() *CmdSink

func (*CmdSink) DrainBatch

func (s *CmdSink) DrainBatch() tea.Cmd

func (*CmdSink) DrainSequence

func (s *CmdSink) DrainSequence() tea.Cmd

func (*CmdSink) Filled

func (s *CmdSink) Filled() bool

func (*CmdSink) Pour

func (s *CmdSink) Pour(cmds ...tea.Cmd)

type TeaModel

type TeaModel[T any] interface {
	Update(tea.Msg) (T, tea.Cmd)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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