recipientlist

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeliveryState

type DeliveryState uint8
const (
	DeliveryStatePending DeliveryState = iota
	DeliveryStateSent
	DeliveryStateFailed
)

type HideControlsMsg

type HideControlsMsg time.Time

TickMsg time.Time

type Model

type Model struct {
	Recipients    []Recipient
	ControlsTimer chan (*struct{})
	Momentum      *scroll.Momentum
	// contains filtered or unexported fields
}

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) Render

func (m *Model) Render() (result []string)

func (Model) Update

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

func (Model) View

func (m Model) View() string

type Recipient

type Recipient struct {
	Name    string
	Address string
	State   DeliveryState
}

Jump to

Keyboard shortcuts

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