models

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitHeader

func InitHeader(isFirstTime bool) string

func NewHomepage

func NewHomepage() tea.Model

func NewWeaveAppInitialization

func NewWeaveAppInitialization(ctx context.Context, mnemonic string) tea.Model

func NewWeaveAppSettingUpGasStation

func NewWeaveAppSettingUpGasStation(ctx context.Context) tea.Model

func NewWeaveAppSuccessfullyInitialized

func NewWeaveAppSuccessfullyInitialized(ctx context.Context) tea.Model

func WaitSetGasStation

func WaitSetGasStation(mnemonic string) tea.Cmd

Types

type ExistingCheckerState

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

func NewExistingCheckerState

func NewExistingCheckerState() ExistingCheckerState

func (ExistingCheckerState) Clone

type GasStationMethodOption

type GasStationMethodOption string
const (
	Generate GasStationMethodOption = "Generate new account (recommended)"
	Import   GasStationMethodOption = "Import existing account using mnemonic"
)

type GasStationMethodSelect

type GasStationMethodSelect struct {
	weavecontext.BaseModel
	ui.Selector[GasStationMethodOption]
	// contains filtered or unexported fields
}

func NewGasStationMethodSelect

func NewGasStationMethodSelect(ctx context.Context) *GasStationMethodSelect

func (*GasStationMethodSelect) Init

func (m *GasStationMethodSelect) Init() tea.Cmd

func (*GasStationMethodSelect) Update

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

func (*GasStationMethodSelect) View

func (m *GasStationMethodSelect) View() string

type GasStationMnemonicDisplayInput

type GasStationMnemonicDisplayInput struct {
	ui.TextInput
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func NewSystemKeysMnemonicDisplayInput

func NewSystemKeysMnemonicDisplayInput(ctx context.Context) *GasStationMnemonicDisplayInput

func (*GasStationMnemonicDisplayInput) GetQuestion

func (m *GasStationMnemonicDisplayInput) GetQuestion() string

func (*GasStationMnemonicDisplayInput) Init

func (*GasStationMnemonicDisplayInput) Update

func (*GasStationMnemonicDisplayInput) View

type GasStationMnemonicInput

type GasStationMnemonicInput struct {
	weavecontext.BaseModel
	ui.TextInput
}

func NewGasStationMnemonicInput

func NewGasStationMnemonicInput(ctx context.Context) *GasStationMnemonicInput

func (*GasStationMnemonicInput) Init

func (m *GasStationMnemonicInput) Init() tea.Cmd

func (*GasStationMnemonicInput) Update

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

func (*GasStationMnemonicInput) View

func (m *GasStationMnemonicInput) View() string

type GenerateGasStationLoading

type GenerateGasStationLoading struct {
	ui.Loading
	weavecontext.BaseModel
}

func NewGenerateGasStationLoading

func NewGenerateGasStationLoading(ctx context.Context) *GenerateGasStationLoading

func (*GenerateGasStationLoading) Init

func (m *GenerateGasStationLoading) Init() tea.Cmd

func (*GenerateGasStationLoading) Update

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

func (*GenerateGasStationLoading) View

type Homepage

type Homepage struct {
	ui.Selector[HomepageOption]
	TextInput ui.TextInput
}

func (*Homepage) Init

func (m *Homepage) Init() tea.Cmd

func (*Homepage) Update

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

func (*Homepage) View

func (m *Homepage) View() string

type HomepageOption

type HomepageOption string
const (
	InitOption HomepageOption = "Weave Init"
)

type WeaveAppInitialization

type WeaveAppInitialization struct {
	weavecontext.BaseModel
	ui.Loading
	// contains filtered or unexported fields
}

func (*WeaveAppInitialization) Init

func (hi *WeaveAppInitialization) Init() tea.Cmd

func (*WeaveAppInitialization) Update

func (hi *WeaveAppInitialization) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*WeaveAppInitialization) View

func (hi *WeaveAppInitialization) View() string

type WeaveAppSettingUpGasStation

type WeaveAppSettingUpGasStation struct {
	weavecontext.BaseModel
	ui.Loading
}

func (*WeaveAppSettingUpGasStation) Init

func (hi *WeaveAppSettingUpGasStation) Init() tea.Cmd

func (*WeaveAppSettingUpGasStation) Update

func (hi *WeaveAppSettingUpGasStation) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*WeaveAppSettingUpGasStation) View

type WeaveAppSuccessfullyInitialized

type WeaveAppSuccessfullyInitialized struct {
	weavecontext.BaseModel
	// contains filtered or unexported fields
}

func (*WeaveAppSuccessfullyInitialized) Init

func (*WeaveAppSuccessfullyInitialized) Update

func (hi *WeaveAppSuccessfullyInitialized) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*WeaveAppSuccessfullyInitialized) View

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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