Help us shape the future of Go! Take the 2026 Go Developer Survey

app

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWizardAborted = errors.New("wizard aborted")
)

Functions

func DefaultBootnodes

func DefaultBootnodes() []string

DefaultBootnodes returns public libp2p bootstrap nodes.

func ParseStorageMode

func ParseStorageMode(ghost bool) storage.Mode

ParseStorageMode converts a CLI flag to storage.Mode.

func Run

func Run(opts Options) error

Run starts the ChatSSH application.

Types

type App

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

App orchestrates TUI, SSH, libp2p, storage, and room chat.

type Options

type Options struct {
	Mode       string // server, connect
	Addr       string
	UseP2P     bool
	Room       bool
	RoomName   string
	Storage    storage.Mode
	Passphrase string
	LocalUser  string
	ListenPort int
	Bootnodes  []string
}

Options configures a ChatSSH session.

func RunWizard

func RunWizard() (Options, error)

RunWizard launches the setup TUI and returns configured Options.

Jump to

Keyboard shortcuts

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