Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateAccountMsg ¶
type CreateModel ¶
type CreateModel struct { Done bool // true when it's time to exit this view Quit bool // true when the user wants to quit the whole program // contains filtered or unexported fields }
Model holds the state of the username UI.
func NewCreateModel ¶
NewModel returns a new username model in its initial state.
func Update ¶
func Update(msg tea.Msg, m CreateModel) (CreateModel, tea.Cmd)
Update is the Bubble Tea update loop.
type NameInvalidMsg ¶
type NameInvalidMsg struct{}
NameInvalidMsg is sent when the requested username has failed validation.
type NameTakenMsg ¶
type NameTakenMsg struct{}
NameTakenMsg is sent when the requested username has already been taken.
Click to show internal directories.
Click to hide internal directories.