router

package
v0.0.0-...-0dfe759 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Register all scenes here.

Index

Constants

This section is empty.

Variables

View Source
var EchoTick = func() tea.Msg {
	return EchoMsg{}
}

Functions

func Init

func Init(name string) tea.Cmd

func NextScene

func NextScene(name string) tea.Cmd

func RegisterScene

func RegisterScene(scene Scene)

func Update

func Update(name string, msg tea.Msg) (next string, cmd tea.Cmd)

func View

func View(name string) string

Types

type EchoMsg

type EchoMsg struct{}

type Scene

type Scene interface {
	tea.Model
	Name() string
}

type SwitchSceneMsg

type SwitchSceneMsg struct {
	Next string
}

Jump to

Keyboard shortcuts

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