ui

package
v0.0.0-...-60b2db8 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UI

type UI struct {
	Devices *devices.Devices
	Version string
	Seed    int64
}

func NewUI

func NewUI(d *devices.Devices, ver string, seed int64) *UI

func (*UI) CreateRouter

func (ui *UI) CreateRouter(stdout io.Writer, ch chan UIEvent) *chi.Mux

type UIEvent

type UIEvent struct {
	Kind UIEventType
	Args []string
}

func NewUIEvent

func NewUIEvent(kind UIEventType, args ...string) UIEvent

type UIEventType

type UIEventType int
const (
	UIRenameEvent UIEventType = iota
	UIEnableEvent
	UICreateEvent
)

Jump to

Keyboard shortcuts

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